Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio .NET
Visual C++
Reference
ATL Reference
ATL Classes
CComQIPtr Class

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
ATL Library Reference
CComQIPtr Class

A smart pointer class for managing COM interface pointers.

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

Parameters

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

Remarks

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.

For an example of using CComQIPtr and CComPtr, see the CComPtr class overview.

Requirements

Header: atlcomcli.h

See Also

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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker