The Compiler documentation mentions two methods of secifying alignment
#pragma options align=packed;
and
#pragma pack (2)
I am trying to get a structure
typedef struct tagKeyBlock
{
unsigned int nSerialNumber_:16 ;
unsigned int nVersion_:8 ;
unsigned long nHash_:32 ;
} KeyBlock;
packed to a sizeof(KeyBlock) equal to 7
Every method I try yields a sizeof(KeyBlock)=8
These alignment options don't seem to be working.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/