Change the packing factor to 1 and the alignment problem will go away. #pragma pack(1) will not put holes in the structure. The pragma is compiler dependent, some compilers may do it differently.
#pragma pack(1)
// your structure goes here
#pragma pack() // revert to default
Ancient Dragon
Achieved Level 70
32,128 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,575
Skill Endorsements: 69
Question Answered as of 1 Year Ago by
Ancient Dragon