Article View: borland.public.cppbuilder.nativeapi
Article #12206Re: Problem with struct sizes
From: Rodolfo Frino - Macrosoft
Date: Sun, 21 Dec 2003 16:14
Date: Sun, 21 Dec 2003 16:14
22 lines
1544 bytes
1544 bytes
Did you try using #pragma? Rodolfo "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message news:3fe51de3@newsgroups.borland.com... > Hi, > > using BCB6 I try to read/write bitmaps. The bitmaps > I save to file are always invalid. I now found that there > is something wrong with the structure sizes. For example > I read/write the BITMAPFILEHEADER by reading/writing > as many bytes as sizeof() tells me but sizeof() says that > BITMAPFILEHEADER is 16 bytes while the docs say > it's 14. > Seems like there is any problem with structure byte > alignment. > > What should I do to fix this? > > thanks, > Nick
Technical Details
Message-ID:
<3fe5c6d6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fe51de3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,157400ec2d2e1eab X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-21 08:39:32 PST From: "Rodolfo Frino - Macrosoft" <Macrosoft@Atlantis.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fe51de3@newsgroups.borland.com> Subject: Re: Problem with struct sizes Date: Mon, 22 Dec 2003 03:14:48 +1100 Lines: 24 Organization: Macrosoft Corporation X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 203.206.17.49 Message-ID: <3fe5c6d6@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072023254 203.206.17.49 (21 Dec 2003 08:14:14 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail