CComVariant::Attach

HRESULT Attach( VARIANT* pSrc );

Return Value

A standard HRESULT value.

Parameters

pSrc

[in] Points to the VARIANT to be attached to the object.

Remarks

Attaches the specified VARIANT to the CComVariant object. Attach sets the variant type of the object to VT_EMPTY.

CComVariant OverviewClass Members

See Also   CComVariant::Detach