Just a heads up for anyone using GDI functions in D2005.

I found a bug in the D2005 version of Windows.pas last night when recompiling my IRC client (last time it was compiled was in Delphi 5 or 6 I think). The tagBITMAP record is declared as a packed record, which when passed to GetObject() causes that function to fail because the record is too short. Remove the packed directive and all is good.

For more info see http://qc.borland.com issue #11282.