摘要
为解决组件的跨语言调用问题,探讨了组件对象模型(COM:ComponentObjectModel)的自动化技术的原理及其实现,并采用自动化技术实现组件的跨语言调用。提出使用DISPID(DispatchIdentifier)编码方案,解决自动化客户访问具有多个接口的自动化组件的问题。以药房管理系统为例,介绍如何用活动模板库(ATL:ActivexTemplateLibrary)开发核心业务的自动化组件,并用VB实现客户程序,从而实现组件的跨语言调用。使用结果表明,采用自动化技术能较好地解决组件的跨语言调用问题。
In order to solve calling problem of component between different languages, theory and implementation of COM(Component Object Model) automation technology are discussed.Automation technology is adopted to solve calling problem of components between different languages. A solution using DISPID(Dispatch Identifier) encoding is adopted to solve the multi-interfaces problem for automation clients access automation components. Taking drugstore management system as an example, how to use ATL(Activex Template Library) to develop automation component of the main business and how to use VB to realize client program are introduced.The calling problem of component between different languages is realized.
出处
《吉林大学学报(信息科学版)》
CAS
2004年第2期138-142,共5页
Journal of Jilin University(Information Science Edition)
基金
深圳三九股份有限公司科研项目(20021012)