Thread
:
sizeof() returns "wrong" Size of structure
View Single Post
#
7
08-20-2005, 06:29
oxagen
Posts: n/a
Quote:
Originally Posted by
infern0
the best way is:
#pragma pack(push, 1)
struct ...
{};
#pragma pack(pop)
to avoid pack problems with other structures
Another way
#include <PshPack1.h>
struct ...
{};
#include <PopPack.h>
oxagen