"Avi Halachmi" <[EMAIL PROTECTED]> wrote in message
news:17894@palm-dev-forum...
>
> hi.
> i want to create a textual ini file with types and creators of certain
> applications.
>
> however, the type and creator are defined as (i.e. 'appl') single quoted 4
> chars sequence.
> this is leagal in ansi-c, but implementation dependant. i know it
transforms
> to UInt32 in codeWarrior.
You can replace it with this macro
#define FourByte(a,b,c,d) ((UInt32)((a) << 24 + (b) << 16 + (c) << 8 +
(d)))
then rather than saying 'appl', you'd say FourByte('a','a','p','l').
CodeWarrior always treats the multi-byte char constants as if they were in
most-significant-byte-first order due to its Macintosh roots.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/