EarlWalker
Member
I've come up with the code below. Within context it does exactly what I want it to do. I'm paranoid its gonna give me a memory error somehow - specifically the first line of Main.
Validate please!
LPVOID pVoid = (LPVOID)NULL;
JCHAR cTempChar = {0 };
//Main
pVoid = (LPVOID*)_J("X");
memcpy((void *) &cTempChar,(const void *) pVoid, sizeof(cTempChar));
Validate please!
LPVOID pVoid = (LPVOID)NULL;
JCHAR cTempChar = {0 };
//Main
pVoid = (LPVOID*)_J("X");
memcpy((void *) &cTempChar,(const void *) pVoid, sizeof(cTempChar));