摘要
COM技术是原来微软为了解决组件调用而推出的一种解决方法,但在微软新的开发战略.NET平台下,没有沿用原来的COM技术,而是采用了一种新的技术:程序集方法。为了在.NET的开发环境下调用原来用COM技术实现组件的方法,文中介绍了.NET中的运行库可调用包装(RCW)技术,说明了如何用这一技术来解决这一问题。用Delphi6新建了一个COM组件,演示了在.NET的平台下利用RCW技术如何来调用这个COM组件,说明了此方法的运用。例子证明利用RCW技术就能很好地在.NET框架的类对象中实现对COM对象的引用。
COM technology is a solution for calling component by Microsoft corporation, but now this technology is not used in the .NET developing environment, while replace it with programming set in the .NET by Microsoft. In order to call initial components developed by COM,introduces a runtime callable wrapper (RCW) technology and discusses how to use this technology to resolve this question. In the last of this paper,set up a COM component by Delphi, and displays the whole process of using RCW technology to realize to call COM component in the .NET. This example proved that RCW technology can be used to resolve the mission well of how to call COM component in the class object in .NET framework.
出处
《微机发展》
2004年第5期93-95,共3页
Microcomputer Development