Export (0) Print
Expand All

CComPtr Class

A smart pointer class for managing COM interface pointers.

template<
   class T 
>
class CComPtr

Parameters

T
A COM interface specifying the type of pointer to be stored.

Remarks

ATL uses CComPtr and CComQIPtr to manage COM interface pointers. Both are derived from CComPtrBase, and both perform automatic reference counting.

Requirements

Header: atlcomcli.h

See Also

Class Members | CComPtr::CComPtr | CComQIPtr::CComQIPtr | ATL Class Overview

Show:
© 2015 Microsoft