A COM interface specifying the type of pointer to be stored.
ATL uses CComPtr and CComQIPtr 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.
template< class T >
class CComPtr
Header file: | Atlbase.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
CComPtr Methods, CComPtr Operators, CComPtr Data Members, CComPtr::CComPtr, CComQIPtr::CComQIPtr