CComPtrBase::Detach

Call this method to release ownership of a pointer.

T* Detach( ) throw( );

Return Value

Returns a copy of the pointer.

Remarks

Releases ownership of a pointer, sets the CComPtrBase::p data member variable to NULL, and returns a copy of the pointer.

Requirements

Header: atlcomcli.h

See Also

Reference

CComPtrBase Class

CComPtrBase::Attach