I'm using a CFile and want to write out a DWORD (or a UINT). DWORD is 32-bits, so that's 4 bytes.

When I do a CFile::Write(&dwordVar, 4) it's not producing what I expect.

How do I write a DWORD/UINT properly?

Thanks.