Udostępnij za pośrednictwem


CComSafeArray::CopyFrom

Copies the contents of a SAFEARRAY structure into the CComSafeArray object.

HRESULT CopyFrom(
   LPSAFEARRAY * ppArray 
);

Parameters

  • ppArray
    Pointer to the SAFEARRAY to copy.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

This method copies the contents of a SAFEARRAY into the current CComSafeArray object. The existing contents of the array are replaced.

Requirements

Header: atlsafe.h

See Also

Reference

CComSafeArray Class

CComSafeArray::CopyTo

Other Resources

CComSafeArray Members