CComVariant::CopyTo

Copies the contents of the CComVariant object.

HRESULT CopyTo(
   BSTR *pstrDest
);

Parameters

  • pstrDest
    Points to a BSTR that will receive a copy of the contents of the CComVariant object.

Return Value

A standard HRESULT value.

Remarks

The CComVariant object must be of type VT_BSTR.

Requirements

Header: atlcomcli.h

See Also

Reference

CComVariant Class

CComVariant::Copy

Other Resources

CComVariant Members