BorlandDave
Programmer
I've got two blocks of data (data and data2). I'm trying to copy both blocks of data back-to-back into a SAFEARRAY. The first block copies ok, but what should the parametres be in the second memcpy function?
Code:
SAFEARRAYBOUND bound={dsize+dsize2,0};
psa = SafeArrayCreate(VT_UI1, 1, &bound);
if (psa == NULL)
return E_OUTOFMEMORY;
memcpy(psa->pvData, &data, dsize); //copy first block
memcpy(?, &data2, dsize2); //copy second block