0 out of 8 rated this helpful - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.