View Single Post
  #5  
Old 08-19-2005, 17:53
infern0 infern0 is offline
Friend
 
Join Date: Dec 2004
Posts: 72
Rept. Given: 4
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 2 Times in 2 Posts
infern0 Reputation: 0
Quote:
Originally Posted by tom324
Try with

#paragma pack(1) (or Intel 8.0 equivalent) directive to have alignment set to 1.

Tom
the best way is:
#pragma pack(push, 1)
struct ...
{};
#pragma pack(pop)

to avoid pack problems with other structures
Reply With Quote