Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

naveen

macrumors member
Original poster
Oct 27, 2004
43
0
Hi all


I am working on QT( C++ GUI Programming Kit) for Mac OSX. In one of .h file in my project i have problem in structure member's values.
This structure containinng the char, long, double members( structure is of size 512 bytes).
I have used the #pragma pack(push,1) in the beginning of .h file and used #pragma pack(pop) in the end of .h file.
What line of code i have to add to align the structure on Mac OSX in c++.


Thanks and Regards
 
byte alignment

HI all

I want to byte align the structure. If anybody have idea plz help me.



Thanks and Regards
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.