I have an array like this
char Data[10];
I am trying to extract a dword like this
dwNumber=Data[2];
This dosen't work
I've also tried
dwNumber=(DWORD)Data[2];
still dosen't work I guese it is just getting one byte since Data is an array of chars. The only way I have been able to do it is like this
memcpy(&dwNumber, (LPVOID)&Data[2], 4);
This seams like overkill there must be a better way to take a dword value from an arraw of chars.