Message-ID: <38305816.C4AFF8D9@pallen.dabsol.co.uk>
Date: Mon, 15 Nov 1999 18:59:34 +0000
From: Peter Allen
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: <382F5C66 DOT 8DA3DEE3 AT a DOT crl DOT com> <382F5EF1 DOT 822487C5 AT home DOT com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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