หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
The following classes implement IUnknown and related methods:
CComObjectRootEx Manages reference counting for both aggregated and nonaggregated objects. Allows you to specify a threading model.
CComObjectRoot Manages reference counting for both aggregated and nonaggregated objects. Uses the default threading model of the server.
CComAggObject Implements
IUnknownfor an aggregated object.CComObject Implements
IUnknownfor a nonaggregated object.CComPolyObject Implements
IUnknownfor aggregated and nonaggregated objects. UsingCComPolyObjectavoids having bothCComAggObjectandCComObjectin your module. A singleCComPolyObjectobject handles both aggregated and nonaggregated cases.CComObjectNoLock Implements
IUnknownfor a nonaggregated object, without modifying the module lock count.CComTearOffObject Implements
IUnknownfor a tear-off interface.CComCachedTearOffObject Implements
IUnknownfor a "cached" tear-off interface.CComContainedObject Implements
IUnknownfor the inner object of an aggregation or a tear-off interface.CComObjectGlobal Manages a reference count on the module to ensure your object won't be deleted.
CComObjectStack Creates a temporary COM object, using a skeletal implementation of
IUnknown.
Related Articles
Fundamentals of ATL COM Objects
See also
Class Overview
Aggregation and Class Factory Macros
COM Map Macros
COM Map Global Functions