|
项目描述: |
A tear-off interface maintains its own reference counting, through the CComTearOffObjectBase ATL class. Note that this is not entirely consistent with the usual COM model where the object maintains an object-wide reference count. In implementing the tear-off interface, you actually need to implement it in a separate C++ class, and instantiate this class separately from the main object class. Also, therefore, the tear-off interface doesn't feature in the multiple inheritance of the main implementation class.
ATL Tear-Off 接口通过 CComTearOffObjectBase ATL 类来维护它自己的引用计数。注意,这同一般的使用COM模型不完全一致,在后者中对象只维护对象范围内的引用计数。在tear-off 接口的实现中,你实际上需要在一个单独的C++类中实现它,从主对象类中单独实例化这个类。此外,tear-off 接口不支持主实现类的多重继承。
来源: http://www.codeguru.com/atl/ATLTearOffInterfaces.html |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
ATLTearOffInterfaces |
 1.0  |
2004-04-13 |
下载 |
|
|