The information in this article applies to:
SUMMARYThe pack pragma affects declarations, not definitions. Place #pragma pack() prior to data declarations. MORE INFORMATIONSample CodeThe following program demonstrates usage of #pragma pack():
NOTE: The default packing value for the 16-bit products mentioned above is
2 bytes. The default packing value for Visual C++ 32-bit, versions 1.0 and
2.xx, is 4 bytes. The default packing value for Visual C++ 32-bit, version
4.0, is 4 bytes for bit fields and 8 bytes otherwise.
Additional query words:
Keywords : kbLangC kbVC100 kbVC150 kbVC151 kbVC152 kbVC200 kbVC210 kbVC400 kbVC500 kbVC600 |
Last Reviewed: July 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |