Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CComQIPtr Class
Collapse the table of content
Expand the table of content

CComQIPtr Class

A smart pointer class for managing COM interface pointers.

template< 
   class T, 
   const IID* piid = &__uuidof(T) 
> 
class CComQIPtr: public CComPtr<T>

T

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

piid

A pointer to the IID of T.

Name

Description

CComQIPtr::CComQIPtr

Constructor.

Name

Description

CComQIPtr::operator =

Assigns a pointer to the member pointer.

ATL uses CComQIPtr and CComPtr to manage COM interface pointers, both of which derive from CComPtrBase. Both classes perform automatic reference counting through calls to AddRef and Release. Overloaded operators handle pointer operations.

Header: atlcomcli.h

Show:
© 2015 Microsoft