You can use bit masking and bit shifting to get your four bytes out. For example: uint x = 348524; // whatever byte b1 = (x>>24); byte b2 = (x>>16) & 0xFF; byte b3 = (x>>8) & 0xFF; byte b3 =x & 0xFF; That's off the cuff, but it should work.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog