I have a bitmap loader with...
Code:#pragma pack(push,bitmap_data,1) *a few structures relating to the bitmap header files and rgbquad* #pragma pack(pop,bitmap_data)
but what does the #pragman pack thing do?
Many thanks
I have a bitmap loader with...
Code:#pragma pack(push,bitmap_data,1) *a few structures relating to the bitmap header files and rgbquad* #pragma pack(pop,bitmap_data)
but what does the #pragman pack thing do?
Many thanks
It tells the compiler that it should not "pad" the data structures within that section (or actually, it should "pad" to a boundary of 1, but as that is the smallest addressable unit of the processor, most likely, that will amount to nothing).
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
cheers mat
http://msdn.microsoft.com/en-ca/library/2e70t5y1.aspx
If you have further questions about some of your Visual Studio compiler features, you can find all your answer there.
Note that pragma directives are compiler specific.
I hate real numbers.