BYTE *buffer = NULL; //<-- Declare ... buffer = new BYTE[size]; //<-- Allocate once size is known memcpy(buffer, data_source, size); //<-- Copy data over from source ... delete [] buffer; //<-- Deallocate when done with buffer
realloc
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)