I thought I understood how C/C++ handled struct member alignment. But I\'m getting strange results for a particular arrangement in Visual Studio 2008 and 2010.
The Visual Studio's C compiler with this command option /Zp[n] where a struct is packed on a n-byte boundary, this is where the #pragma pack directive comes in, members of the structure are aligned on a boundary that is multiple of n.