摘要
异步与分布式应用软件系统在工程领域有着广泛的应用,有必要寻找一种快速高效地构筑异步系统的方法,微软的组件对象模型COM可以很好地满足这方面的需要。首先概述开发异步调用组件的意义和工具,以及所涉及到的COM基本概念,包括接口、事件、连接点、线程模型等,并结合一个具体工程实例详述了在Visual C++6.0编程环境下用ATL开发异步调用组件的方法,最后对组件进行了测试并顺利通过,证明了COM开发此类异步应用系统的高效性。
Asynchronous and distributed application programs are widely used in engineering,and it is necessary to develop an effective way to construct such systems.The component object model(COM) can meet this demand perfectly.In this article,the mechanism and developing tool of asynchronous COM programming were introduced,along with some essential concepts such as interface,event,connection point,threading mode and so on.Then a factory implementation instance was put forward to illustrate the method of asynchronous component programming by using ATL under Visual C++6.0 environment.Finally,it proves that COM is a highly effective tool for developing such asynchronous application program through the test results.
出处
《中国测试》
CAS
2011年第6期87-90,共4页
China Measurement & Test