Alignment of structures has changed a bit in Delphi 2009. The new layout is more compatible with C++. The old layout system is still available by setting {$OLDTYPELAYOUT ON}. So if you don't want to change your code for whatever reason you don't have to. Use {$ALIGN n} or {$An} to specify the alignment.
3 comments:
Can you tell me more details about the differences from the old and the new allignment plese?
Yeah, please tell more. Does this apply to class fields, records or both?
read delphi help
Post a Comment