Mail Archives: djgpp/1999/11/14/21:32:25
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
>
> These are for 32-bit compilers. You can find the above defines in
> (e.g.,) Cygwin.
>
> --
> Weiqi Gao
> weiqigao AT a DOT crl DOT com
--
Robin Hugh Johnson
"Robbat2"
"Of all deceptions, self-deception is the worst"
- Plato
E-Mail : robbat2 AT hotmail DOT com
ICQ# : 30269588 or 41961639
Mail Files : robbat2 AT home DOT com
Home Page : http://robbat2.cjb.net
Time Zone : Pacific Daylight (GMT - 8)
- Raw text -