CComVariant::Copy

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

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

Concepts

CComVariant Class

CComVariant Members

CComVariant::operator =

VariantCopy

CComVariant::CopyTo