Adding #pragma pack(1) to the top of header files will cause it to be 14 bytes on some compilers, but not all.
Compilers usually compile for optimum speed. You may also get 14 bytes if you use the Os compiling option, but I'm not sure about that.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 21
Thread: size of structureThreaded View
|
Click Here to Expand Forum to Full Width |