RPC – Neohope的网络笔记 https://www.neohope.com Learn and share. Mon, 13 Jun 2016 03:05:49 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 COM+服务授权配置 https://www.neohope.com/2016/06/12/com%e6%9c%8d%e5%8a%a1%e6%8e%88%e6%9d%83%e9%85%8d%e7%bd%ae/ https://www.neohope.com/2016/06/12/com%e6%9c%8d%e5%8a%a1%e6%8e%88%e6%9d%83%e9%85%8d%e7%bd%ae/#respond Sun, 12 Jun 2016 14:36:26 +0000 http://www.neohope.com/?p=2681 https://www.neohope.com/2016/06/12/com%e6%9c%8d%e5%8a%a1%e6%8e%88%e6%9d%83%e9%85%8d%e7%bd%ae/feed/ 0 COM+简单示例(05) https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/ https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/#respond Sun, 12 Jun 2016 13:45:59 +0000 http://www.neohope.com/?p=2671 https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/feed/ 0 COM+简单示例(04) https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8804%ef%bc%89/ https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8804%ef%bc%89/#respond Sun, 12 Jun 2016 13:40:09 +0000 http://www.neohope.com/?p=2668 https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8804%ef%bc%89/feed/ 0 COM+简单示例(03) https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8803%ef%bc%89/ https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8803%ef%bc%89/#respond Sun, 12 Jun 2016 13:31:57 +0000 http://www.neohope.com/?p=2666 https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8803%ef%bc%89/feed/ 0 COM+简单示例(02) https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/ https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/#respond Sun, 12 Jun 2016 08:57:12 +0000 http://www.neohope.com/?p=2660 Application->Assembly Infomation->Make Assembly COM-Visible->打勾 6、项目属性->Signing->Sign the assembly->打勾 项目属性->Signing->Choose a strong name key file->New 7、编译 8、注册 9、反注册 10、查看注册结果(COM+)]]> https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/feed/ 0 COM+简单示例(01) https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8801%ef%bc%89/ https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8801%ef%bc%89/#respond Sun, 12 Jun 2016 08:45:23 +0000 http://www.neohope.com/?p=2653 ATL Project(名称为ATLCOMP)->类型选择Dynamic Library(DLL)->勾选Support COM+ 1.0->Finish 2、工程视图,ATLCOMP工程,右键->Add->Class->ATL->ATL COM+ 1.0 Component->类名为JustATestCOMP,ProgID为ATLCOMP.JustATestCOMP 3、切换到类视图,ATLCOMP项目下的IJustATestCOMP接口上右键Add Method 名称:Add 参数1:[in]LONG a 参数2:[in]LONG b 参数3:[out,retval]LONG* c 4、类视图,ATLCOMP项目下的IJustATestCOMP接口上右键Add Method 名称:SayHiTo 参数1:[in]BSTR someOne 参数2:[out,retval]BSTR* retValue 5、打开JustATestCOMP.cpp完成两个函数 6、编译 7、注册 8、反注册 9、注册到COM+ 9.1打开组件管理器 9.2选择到“Components Services-》Computers-》My Computer->COM+ Applications” 9.3右键“New-》Application(ATLCOMP)” 9.4选择到“Components Services-》Computers-》My Computer->COM+ Continue reading COM+简单示例(01)]]> https://www.neohope.com/2016/06/12/com%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8801%ef%bc%89/feed/ 0 DCOM简单示例(05) https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/ https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/#respond Sat, 11 Jun 2016 14:49:13 +0000 http://www.neohope.com/?p=2648 https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8805%ef%bc%89/feed/ 0 DCOM简单示例(04) https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8804%ef%bc%89/ https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8804%ef%bc%89/#respond Sat, 11 Jun 2016 14:10:32 +0000 http://www.neohope.com/?p=2644 https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8804%ef%bc%89/feed/ 0 DCOM简单示例(03) https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8803%ef%bc%89/ https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8803%ef%bc%89/#respond Sat, 11 Jun 2016 12:41:05 +0000 http://www.neohope.com/?p=2641 https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8803%ef%bc%89/feed/ 0 DCOM简单示例(02) https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/ https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/#respond Sat, 11 Jun 2016 12:36:38 +0000 http://www.neohope.com/?p=2639 ATL Project(名称为ATLService)->类型选择Service(EXE)->Finish 2、工程视图,ATLService工程,右键->Add->Class->ATL->ATL Simple Object->类名为JustATestSvr,ProgID为ATLService.JustATestSvr 3、切换到类视图,ATLService项目下的IJustATestSvr接口上右键Add Method 名称:Add 参数1:[in]LONG a 参数2:[in]LONG b 参数3:[out,retval]LONG* c 4、类视图,ATLService项目下的IIJustATestSvr接口上右键Add Method 名称:SayHiTo 参数1:[in]BSTR someOne 参数2:[out,retval]BSTR* retValue 5、打开IJustATestSvr.cpp完成两个函数 6、编辑JustATestSvc.rgs,在TypeLib一行前,增加这样一行 这是MS的一个大bug,浪费了我好几个小时。 7、编译 8、注册 9、运行 10、停止 11、反注册]]> https://www.neohope.com/2016/06/11/dcom%e7%ae%80%e5%8d%95%e7%a4%ba%e4%be%8b%ef%bc%8802%ef%bc%89/feed/ 0