delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/15/15:01:52

Message-ID: <38305816.C4AFF8D9@pallen.dabsol.co.uk>
Date: Mon, 15 Nov 1999 18:59:34 +0000
From: Peter Allen <P DOT Allen AT pallen DOT dabsol DOT co DOT uk>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Are they there?
References: <qlTNIDAWOwL4Iwfj AT quayles1 DOT demon DOT co DOT uk> <382F5C66 DOT 8DA3DEE3 AT a DOT crl DOT com> <382F5EF1 DOT 822487C5 AT home DOT com>
Reply-To: djgpp AT delorie DOT com

Robin Johnson wrote:
> 
> Weiqi Gao wrote:
> 
> > David Parrott wrote:
> > >
> > > Heya all,
> > >     Sorry for the cryptic title but I would like to know if BYTE, WORD
> > > and DWORD are defined anywhere? If not what are there equivalent sizes
> > > so I can define them myself?
> > > The only one I know is #define BYTE unsigned char
> >
> > These types are used in the Windows SDK.
> >
> > typedef unsigned char BYTE;
> > typedef unsigned short WORD;
> > typedef unsigned int DWORD;
> 
> typedef unsigned long int DWORD;
> is better for compiling with different compilers.
> it explicitly specifies that it wants 32 bits.
> unlike int, which is 32bits in DJGPP, but 16 bits in Turbo C++ v3

unsigned long is 64 bits on a 64 bit architecture.  (Soes int for that
matter)

		Peter Allen

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019