Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2005 Mar : BITMAP record is incorrectly declared packed in Windows.pas

www.cryer.info
Managed Newsgroup Archive

BITMAP record is incorrectly declared packed in Windows.pas

Subject:BITMAP record is incorrectly declared packed in Windows.pas
Posted by:"Steve Williams" (stevewillia..@kromestudios.com)
Date:Thu, 10 Mar 2005 22:53:09

In Windows.pas in Delphi 2005, the BITMAP record (tagBitmap) is declared as
packed.  It is wrong.  Calling GetObject() with a handle to a bitmap object
and passing sizeof(BITMAP) to it returns zero and the error code is 8
("There is not enough storage space for this command").  This has been
correct in previous versions of Delphi.

There are several other records around the BITMAP declaration that are also
declared packed.  Are these wrong as well?

Sly

Replies:

www.cryer.info
Managed Newsgroup Archive