先引入组件对象模型,然后简要阐述组件的结构及实现,包括COM对象和接口、IUnknown接口、COM对象的创建、组件与客户之间的通讯。最后,用VC++中的ATL创建一进程内组件,用VB调用其功能服务。%This paper firstly presents COM, then, briefly statesarchitecture and implementation of software components, including COM object and interface, IUnknown interface, building of COM object, and communication between component and its caller. In practice, an in-process component is built with ATL in VC++. And, the component is successfully called by VB.
展开▼