ASingerMustDie
Programmer
Hi everyone,
How may one go about writing a buffer to a file in Big-Endian form rather than Little-Endian?
CString buffer;
buffer = 6;
WriteFile(myHandle, buffer, 2, &bWritten, NULL);
Gives (in hex):
06 00
How do we get:
00 06?
Any help most appreciated,
ASMD
How may one go about writing a buffer to a file in Big-Endian form rather than Little-Endian?
CString buffer;
buffer = 6;
WriteFile(myHandle, buffer, 2, &bWritten, NULL);
Gives (in hex):
06 00
How do we get:
00 06?
Any help most appreciated,
ASMD