辽宁石油化工大学学报

辽宁石油化工大学学报 ›› 2008, Vol. 28 ›› Issue (2): 63-66.

• 计算机与自动化 • 上一篇    下一篇

COM与.NET互操作技术的研究及实现

任立军侯立刚*, 魏延良   

  1. 辽宁石油化工大学信息与控制工程学院,辽宁抚顺 113001
  • 收稿日期:2007-12-18 出版日期:2008-06-20 发布日期:2017-07-23

Research and Realization of COM and .NET Interoperation Technology

REN Li-jun, HOU Li-gang*, WEI Yan-liang   

  1. School of Information and Control Engineering, Liaoning University of Petroleum & Chemical Technology , Fushun Liaoning 113000,P.R. China
  • Received:2007-12-18 Published:2008-06-20 Online:2017-07-23

摘要: 阐述了COM对象与.NET框架对象模型之间的区别,分别讲述了COM作为服务器、.NET作为客户端以及.NET作为服务器、COM作为客户端的COM与.NET之间的互操作实现方法。利用运行时可调用封装器RCW和COM可调用封装器CCW实现了在托管代码(.NET代码)中调用COM组件和在非托管代码中调用.NET组件。在.NET技术成熟的情况下,继续采用COM组件技术编写应用程序将会越来越少,但是在近期内COM技术不会被.NET技术完全取代,而实现COM组件和.NET组件之间的相互操作,可以保护和利用已经存在的大量采用COM组件技术开发的软件和产品,同时可以使那些习惯于COM的编程人员使用.NET平台下的组件软件。

关键词: COM, .NET, 运行时可调用封装器, COM可调用封装器

Abstract: The difference between COM object and object module of .NET framework was elaborated. And the interoperation realization method between COM and .NET while COM as the server and .NET as the client, and con the contrary while .NET as the server and COM as the client was respectively narrated. Calling COM component in unmanaged code (.NET code) and .NET component in managed code was realized by taking advantage of runtime callable wrapper RCW and COM callable wrapper CCW. Thus, in the situation of the .NET technical maturing, programming of using the COM technology will much less than before. But the COM technology would not be completely replaced by .NET in the near future. So a great deal of existent products which are developed using COM component technology are protected and used through realizing the interoperation between the COM and the .NET technology, which also makes the COM programmers use easily the software based on the .NET technology.

Key words: COM, .NET, Runtime callable wrapper, COM callable wrapper

引用本文

任立军, 侯立刚, 魏延良. COM与.NET互操作技术的研究及实现[J]. 辽宁石油化工大学学报, 2008, 28(2): 63-66.

REN Li-jun, HOU Li-gang, WEI Yan-liang. Research and Realization of COM and .NET Interoperation Technology[J]. Journal of Liaoning Petrochemical University, 2008, 28(2): 63-66.

使用本文

0
    /   /   推荐

导出引用管理器 EndNote|Ris|BibTeX

链接本文: http://journal.lnpu.edu.cn/CN/

               http://journal.lnpu.edu.cn/CN/Y2008/V28/I2/63