/pack
midl
/pack packing_level
packing_level
Specifies the
packing level of structures in the target system. The packing-level value can
be set to 1, 2, 4, or 8.
Examples
midl /pack 2 filename.idl
midl /pack 8 bar.idl
Remarks
The /pack
switch is the same as the /Zp
Specify the
same packing level when you invoke the MIDL compiler and the C compiler. The
default is 8.
For a
discussion of the potential dangers in using nonstandard packing levels, see
the /Zp help topic.
See Also