CComSafeArray::CopyFrom

 

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

Syntax

      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

CComSafeArray Class
CComSafeArray::CopyTo