Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Struct members alignment in Visual C++ 2008

Visual C++ let's you select the struct members alignemnt in the project's properties page. Problem is, this configuration is being used for all srtructs in the project.

Is there any way (VC++ specific, I'd guess) to set a certain struct's member alignment individually?


1 Answers

#pragma pack

http://msdn.microsoft.com/en-us/library/2e70t5y1(VS.80).aspx

like image 92
KIV Avatar answered Mar 04 '26 22:03

KIV



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!