Hey Guys can someone please help

Ive been trying to convert the first 4 bytes of a BYTE (unsigned char) buffer to a dword. i have tried many different methods and have got them all working on standard Buffers. But as soon as i use a buffer on the freestore it doesn't convert the first 4 bytes of the buffer to the DWORD probably and i got some odd numbers.


Peter