Is it possible to copy data from a BYTE * pointer
to a CByteArray ?
How?
Printable View
Is it possible to copy data from a BYTE * pointer
to a CByteArray ?
How?
copyArray(BYTE* pByte, int nSize, CByteArray& byteArray)
{
byteArray.SetSize(nSize);
memcpy(byteArray.GetData(), pByte, nSize);
}
HTH,
Chris