Palm Developer Forum Hi,Everybody,this is my first Question,Please give me
advice.thanks in advance!
Compiler:CodeWarrior ,when using "view memory",I find something strange:
For Example: Memory display
0x00F00000: 0011 0022 0033 0044 .....
........ .... .. ... ..
assume a WORD pointer to 0x00F0000 :
WORD* wT; ; I can watch its value equal 0x0011,and wT+1 's value is
0x0022
;
next assume a DWORD pointer to 0x00F00000:
DWORD* dwT; ; I can watch its value equal 0x00110022
Originally data "0x0022" 's address is higher than data "0x0011" ,but DWORD (or
UInt32)
make it changed.
As a result like so,In Visual C++ my program is normal ,In Codewarrior is error;
In VC: wT'value is 0x1100,
dwT'value is 0x22001100
In my program ��I need compare dwT'value with other data,dwT'value must be
given by wT and other WORD* data. I can changed errors clumsily ,but I want to
listen yours advice. thanks very much!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/