1. is the above the correct way to convert packed records from GCC++ to CW9?
Yes, using #pragma options align=packed is appropriate.
2. How do I fix the odd byte memory fatal error
Unlike GCC, CodeWarrior's compiler won't automatically handle unaligned access for you. You need to access your UInt16 members a byte at a time using something like
UInt16 value = ((UInt8 *)(&foo->member1)[0] << 8) + ((UInt8 *)(&foo->member1)[1]);
-- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS Technical Lead, Metrowerks For programming help, see http://www.palmoswerks.com/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
