Поделиться через


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.

Заметки

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

См. также

Основные понятия

CComQIPtr Members

CComPtr::CComPtr

CComQIPtr::CComQIPtr

CComPtrBase Class

ATL Class Overview

CComQIPtrElementTraits Class