Help Center

DSAFEARRAY.CopyDatamethod

Copies the source array to the target array after releasing any resources in the target array.

COMmethodDSafeArray.incdocumented

Syntax

FUNCTION CopyData (BYVAL psaTarget AS SAFEARRAY PTR) AS HRESULT

Return value

S_OK (0) on success or an HREUSLT code.

Description

Copies the source array to the target array after releasing any resources in the target array. This is similar to Copy, except that the target array has to be set up by the caller. The target is not allocated or reallocated.

On exit, the array referred to by psaTarget contains a copy of the data if the call succeeds.

Reference

  • Include file DSafeArray.inc
  • Defined in AfxNova/DSafeArray.inc:869
  • Documented in COM/DSAFEARRAY Class.md
  • Topic: DSAFEARRAY Class