> 1. We need htonl, to htons :-)

See NetHToNL, NetHToNS -- they're already part of the Palm OS API, since
version 2.0.

> 2. There isn't as easy as appears. Assuming LSB to MSB order for ARM
> creatorID we have portability with string interpretation (WinDrawChars
etc),
> while with MSB to LSB order we have an order problem (if (CrID1 >
crID2)
> doesn't work properly if both CrIDs are UInt32).

A quick note:  In CodeWarrior, 'abcd' always considers 'a' to be the
high byte of the UInt32.  The C++ parser basically sees this as a
base-256 number and outputs it to the semantic analysis phase as an
integer of the appropriate size.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to