首页 | 本学科首页   官方微博 | 高级检索  
     

ATL支持下的组件复用技术
引用本文:周振红,任慧,王琦.ATL支持下的组件复用技术[J].武汉大学学报(工学版),2005,38(2):118-122.
作者姓名:周振红  任慧  王琦
作者单位:1. 郑州大学环境与水利学院,河南,郑州,450002
2. 郑州大学电气工程学院,河南,郑州,450002
基金项目:河南省高校青年骨干教师资助项目.
摘    要:组件复用旨在利用已有组件创建新组件,提高组件软件开发效率. COM组件复用通过包容和聚合来实现:包容时,外部组件包含内部组件的接口;聚合时,外部组件直接向外公开内部组件的接口.在利用ATL函数由外部组件创建内部组件时,包容返回的是内部组件自定义接口指针;聚合返回的是内部组件基接口指针IUn known. Visual Basic客户程序测试表明:无论是包容还是聚合,客户程序均可由外部组件的缺省接口访问到内部组件接口.

关 键 词:组件  接口  COM  ATL  包容  聚合
文章编号:1671-8844(2005)02-118-05
修稿时间:2004年11月21

Component reuse supported by active template library
ZHOU Zhen-hong,REN Hui,WANG Qi.Component reuse supported by active template library[J].Engineering Journal of Wuhan University,2005,38(2):118-122.
Authors:ZHOU Zhen-hong  REN Hui  WANG Qi
Affiliation:ZHOU Zhen-hong~1,REN Hui~2,WANG Qi~1
Abstract:Component reuse is to raise productivity in component software, utilizing existing component to develop new ones. Component reuse is accomplished by containment and aggregation. Containing component incorporates the interface of inner one, and aggregating component directly publishes the interface. When outer components create inner ones by ATL, inner component self-defining interface pointer has to be returned as for containment, but inner basal interface pointer IUnknown as for aggregation. Visual Basic testing client has proved that inner component interface can be accessed via outer component default interface in both containment and aggregation.
Keywords:component  interface  COM  active template library (ATL)  containment  aggregation
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号