Subject: FW: Re: wxwin port
From: [email-masked] (Keith Gary Boyce)

10 Nov 1996 00:32:42 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=us-ascii
Original-To: [email-masked]
X-PRIORITY: 3 (Normal)
X-Mailer: Chameleon 5.0, TCP/IP for Windows, NetManage Inc.
Original-Sender: [email-masked]

Does anyone have any input on why 16 bytes from gnu-win32 and
14 for other compiler
--- On Sat, 09 Nov 1996 22:08:23 +0000  Julian Smart 
<[email-masked]> wrote:
VC++ version is:

>typedef struct tagBITMAPFILEHEADER {
>        WORD    bfType;
>        DWORD   bfSize;
>        WORD    bfReserved1;
>        WORD    bfReserved2;
>        DWORD   bfOffBits;
>} BITMAPFILEHEADER, FAR *LPBITMAPFILEHEADER, *PBITMAPFILEHEADER;

WORD is 16 bits=2 bytes, DWORD is 32 bits=4 bytes, so this is

3 * 2 + 2 * 4 = 14

>(gdb) ptype BITMAPFILEHEADER
>type = struct tagBITMAPFILEHEADER {
>    short unsigned int bfType;
>    unsigned int bfSize;
>    short unsigned int bfReserved1;
>    short unsigned int bfReserved2;
>    unsigned int bfOffBits;
>}

3 * x + 2 * y = 16

3 * 4 + 2 * 2 = 16

3 * 2 + 2 * 5 = 16

but I can't imagine those types (WORD and DWORD) are anything but 2 and 4 bytes.

Strange.

Julian
========================================================================
Julian Smart              [email-masked]
Anthemion Software        http://web.ukonline.co.uk/Members/julian.smart
149 Warrender Park Road   0131 466 0193
Edinburgh
EH9 1DT                   Consultancy in GUI, Windows, MFC, C++, HTML
========================================================================

-----------------End of Original Message-----------------

-------------------------------------
Name: Garry Boyce
E-mail: [email-masked] (Garry Boyce)
Date: 12/01/94
Time: 08:46:10

This message was sent by Chameleon 
-------------------------------------

-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".