Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CComVariant::Detach

 

Detaches the underlying VARIANT from the CComVariant object and sets the object's type to VT_EMPTY.


      HRESULT Detach(
   VARIANT* pDest 
);

pDest

[out] Returns the underlying VARIANT value of the object.

A standard HRESULT value.

Note that the contents of the VARIANT referenced by pDest will automatically be cleared before being assigned the value and type of the calling CComVariant object.

Requirements

Header: atlcomcli.h

Show: