From: garp AT opustel DOT com (Keith Gary Boyce) Subject: FW: Re: wxwin port 10 Nov 1996 00:32:42 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Original-To: gnu-win32 AT cygnus DOT com X-PRIORITY: 3 (Normal) X-Mailer: Chameleon 5.0, TCP/IP for Windows, NetManage Inc. Original-Sender: owner-gnu-win32 AT cygnus DOT com 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 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 julian DOT smart AT ukonline DOT co DOT uk 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: garp AT opustel DOT opustel DOT com (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 "gnu-win32-request AT cygnus DOT com" with one line of text: "help".