CComVariant::Copy

 

Frees the CComVariant object and then assigns it a copy of the specified VARIANT.

Syntax

      HRESULT Copy(
   const VARIANT* pSrc 
);

Parameters

  • pSrc
    [in] A pointer to the VARIANT to be copied.

Return Value

A standard HRESULT value.

Requirements

Header: atlcomcli.h

See Also

CComVariant Class
CComVariant::operator =
f6ddbe1f-37b0-44f1-a3f0-b7ef4df88f8a
CComVariant::CopyTo