🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15698

Re: Structure and sizeof mis-behaving

#15698
From: Ed Mulroy [TeamB]
Date: Mon, 16 Jun 2003 11:27
47 lines
2281 bytes
As you can see from the screen capture below, I got 14 bytes for the size:

  ----------------
  C:\Lookat\temp
  >type temp42.cpp
  #include <windows.h>
  #include <stdio.h>

  int main()
    {
    printf("%u\n", sizeof(BITMAPFILEHEADER));
    return  0;
    }

  C:\Lookat\temp
  >bcc32 -WCR temp42
  Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland
  TEMP42.CPP:
  Turbo Incremental Link 5.64 Copyright (c) 1997-2002 Borland

  C:\Lookat\temp
  >temp42
  14

  C:\Lookat\temp
  >
  ----------------

Have you applied the updates to the compiler?  If not, visit the link below
and get update 4 and apply it.  The update is cumulative so applying 4
brings you up to date independent of if one of the earlier updates has or
has not been applied.

http://info.borland.com/devsupport/bcppbuilder/

.  Ed

> Chris wrote in message
> news:3eed33f3$1@newsgroups.borland.com...
>
> I found out why my DIB to bitmap function isn't
> working... CBuilder6 is reporting the size of
> BITMAPFILEHEADER two bytes bigger than it
> actually is, and there are two extra junk bytes
> at the beginning of the structure data that shouldn't
> be there. They aren't there in CBuilder5, and
> the size is reported properly, too.
Technical Details
Message-ID: <3eeda998@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eed33f3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,316b0e1c5551c37a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-16 04:33:09 PST
From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eed33f3$1@newsgroups.borland.com>
Subject: Re: Structure and sizeof mis-behaving
Date: Mon, 16 Jun 2003 07:27:09 -0400
Lines: 49
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.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <3eeda998@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1055762840 24.74.175.102 (16 Jun 2003 04:27:20 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail