I have this line of code:
memcpy(&x, (BYTE*)lParam, sizeof(x));
lParam is the LPARAM datatype, this is in a message callback.
My question is what exactly is (BYTE*)lParam doing? I am trying to do this same thing in a VB app and I'm not sure of the VB equivalent. Saying CByte(lParam) doesn't seem to be giving me the expected results.
memcpy(&x, (BYTE*)lParam, sizeof(x));
lParam is the LPARAM datatype, this is in a message callback.
My question is what exactly is (BYTE*)lParam doing? I am trying to do this same thing in a VB app and I'm not sure of the VB equivalent. Saying CByte(lParam) doesn't seem to be giving me the expected results.