COM+ – 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