A COM interface specifying the type of pointer to be stored.
ATL uses this class and the CComQIPtr class to manage COM interface pointers. Both classes perform automatic reference counting through calls to AddRef and Release. Overloaded operators handle pointer operations. CComQIPtr additionally supports automatic querying of interfaces though QueryInterface.
At a Glance
Header file: | Atlbase.h |
Windows CE versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
Syntax
template< class T >
class CComPtr
See Also