CComQIPtr Class
Visual Studio 2005
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.
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.
Reference
CComPtr::CComPtrCComQIPtr::CComQIPtr
CComPtrBase Class
CComQIPtrElementTraits Class
Other Resources
CComQIPtr MembersATL Class Overview
See Also
CComDispatchDriver http://msdn2.microsoft.com/en-us/library/9yb5s0fk(vs.80).aspx
- 2/7/2007
- Aleksandar Ristovski
- 2/7/2007
- Aleksandar Ristovski