I have loaded a a.dat file in resource in VC++ project in Visual studio as told in documentation.
Now in my main code, I want to load this data into a static memory buffer from resource pointer:
HRSRC myResource = ::FindResource(NULL, MAKEINTRESOURCE(IDR_RCDATA1), RT_RCDATA);
unsigned int myResourceSize = ::SizeofResource(NULL, myResource);
HGLOBAL myResourceData = ::LoadResource(NULL, myResource);
void* pMyBinaryData = ::LockResource(myResourceData);
Now I'm stucked on how to create a static memory buffer and store data from pMyBinaryData
pointer.
Can anyone help to get this solved Please! Thanks in advance.