首页 > 代码库 > vs05字节对齐问题又一不小心就弄去了我一个下午的时间

vs05字节对齐问题又一不小心就弄去了我一个下午的时间

由于一字节的对齐问题,我调一个库调了我基本一个下午.....

犯错其实并不可怕,

可怕的是你一犯再犯......

这也算得上是难能可贵...

 

/Zp (Struct Member Alignment)

Visual Studio 2013
 
Other Versions
 
This topic has not yet been rated Rate this topic
 

Controls how the members of a structure are packed into memory and specifies the same packing for all structures in a module.

 
 
/Zp[1|2|4|8|16]
Remarks