OK then another question. Can you marshall a negative number? I.E, we have our own
'HotSync' application. The Windows side application fill some structs with data, flips
the data and streams them using TCP/IP. When the palm gets it, will a -100 be a -100
in the struct? Honestly, It will take me
IMHO, yes it would be still -100.
Henk
Ralph Krausse wrote:
OK then another question. Can you marshall a negative number? I.E, we have our own 'HotSync' application. The Windows side application fill some structs with data, flips the data and streams them using TCP/IP. When the palm gets it,
I think your question relates to whether there is a difference in the
internal representation of a negative number on different platforms. The
answer in this case is no. As long as you flip the byte order, you'll be
fine.
Alan
Henk Jonas [EMAIL PROTECTED] wrote in message
Can one flip a negative number from Windows to Palm?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
It doesn't really matter whether the number is +ve or -ve or floating
points numbers or integer numbers. If you're converting numbers
stored in big endian format (pre Palm OS5 devices) to little endian
format, you flip the bytes.
One question though. For the new OS 5 devices that uses ARM
It doesn't really matter whether the number is +ve or -ve or floating
points numbers or integer numbers. If you're converting numbers
stored in big endian format (pre Palm OS5 devices) to little endian
format, you flip the bytes.
little endian or big endian - numbers are still stored