CComPtrBase Members

Methods

Advise

Call this method to create a connection between the CComPtrBase's connection point and a client's sink.

Attach

Call this method to take ownership of an existing pointer.

~CComPtrBase

The destructor.

CoCreateInstance

Call this method to create an object of the class associated with a specified Class ID or Program ID.

CopyTo

Call this method to copy the CComPtrBase pointer to another pointer variable.

Detach

Call this method to release ownership of a pointer.

IsEqualObject

Call this method to check if the specified IUnknown points to the same object associated with the CComPtrBase object.

QueryInterface

Call this method to return a pointer to a specified interface.

Release

Call this method to release the interface.

SetSite

Call this method to set the site of the CComPtrBase object to the IUnknown of the parent object.

Operators

operator T*

The cast operator.

operator <

The less-than operator.

operator !

The NOT operator.

operator &

The & operator.

operator *

The * operator.

operator ->

The pointer-to-members operator.

operator ==

The equality operator.

Data Members

p

The pointer data member variable.

See Also

Concepts

CComPtrBase Class