Thread
:
sizeof() returns "wrong" Size of structure
View Single Post
#
4
08-19-2005, 17:53
infern0
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
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
infern0
View Public Profile
Find all posts by infern0