I took a little better look at this issue...  The data that was showing up
byteswapped was a 4-char integer, such as 'addr' showing up in the debugger
as 'rdda'.  But instead, I displayed the int as a C string, and it properly
displays "addr" (plus some trailing garbage because of missing null
terminator).

So it seems that maybe the CW debugger is the one having problems...  In
fact, trying to show the above value as hex results in 0x61646472, which is
correct.  Only when displaying as a character constant does it byteswap.

---- --- -- -
Matthew D Moss
[EMAIL PROTECTED]



Reply via email to