文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>ATL之如何聚合一个组件

ATL之如何聚合一个组件

时间:2011-05-14  来源:Tekkaman

【如何聚合一个组件】

1、Add an IUnknown pointer to your class object and initialize it to NULL in the constructor.

2、Override FinalConstruct to create the aggregate. 

3、Use the IUnknown pointer you defined as the parameter to the COM_INTERFACE_ENTRY_AGGREGATE macro.

4、Override FinalRelease to release the IUnknown pointer.

Warning :If you wanna use interface in FinalConstruct,please use DECLARE_PROTECT_FINAL_CONSTRUCT macro to protect your object from deleting.

Examples:

相关阅读 更多 +
排行榜 更多 +
PvZ戴夫的时空冒险重置

PvZ戴夫的时空冒险重置

策略塔防 下载
PVZTV雪版阳光加50

PVZTV雪版阳光加50

策略塔防 下载
双刃战士雪姐

双刃战士雪姐

冒险解谜 下载