> One option would be to manually set the packing options for the
> structure in the header file.
>
> #pragma pack(push)
> #pragma pack(8) // Or something sensible.
> typedef struct
> {
> // Whatever.
> } STRUCT;
> #pragma pack(pop)
>
> But provided you stick to the same build options and always use the
> MSVC compiler you should be safe without these safeguards..But using these #pragma's is too easy to miss out. I'd never rely on compiler internals on such stuff. I would specify the packing explicitly and rest assured that they'd be applied no matter what. ------------- Ehsan Akhgari Farda Technology (http://www.farda-tech.com/) List Owner: [email protected] [ Email: [EMAIL PROTECTED] ] [ WWW: http://www.beginthread.com/Ehsan ] But the thought is one thing, the deed another, and the idea of the deed still another. The wheel of causality does not roll between them. -Thus Spoke Zarathustra, F. W. Nietzsche _______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
