Mail Archives: djgpp/1999/11/15/15:01:52
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 -