_com_ptr_t::Attach

Microsoft Specific

void Attach( Interface* pInterface ) throw( );

void Attach( Interface* pInterface, bool fAddRef ) throw( );

Parameters

pInterface

a raw interface pointer

fAddRef

If it is true, then AddRef is called. If it is false, the _com_ptr_t object takes ownership of the raw interface pointer without calling AddRef.

Remarks

Encapsulates a raw interface pointer of this smart pointer’s type.

_com_ptr_t Overview

END Microsoft Specific