We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

CComPtrBase Class

This class provides a basis for smart pointer classes using COM-based memory routines.

template < 
   class T  
> class CComPtrBase


The object type to be referenced by the smart pointer.

This class provides the basis for other smart pointers which use COM memory management routines, such as CComQIPtr and CComPtr. The derived classes add their own constructors and operators, but rely on the methods provided by CComPtrBase.

Header: atlcomcli.h