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

Reference

CComVariant Class

CComVariant::operator =

VariantCopy Function

CComVariant::CopyTo

Other Resources

CComVariant Members