delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/14/21:32:25

Message-ID: <382F5EF1.822487C5@home.com>
From: Robin Johnson <robbat2 AT home DOT com>
Organization: Orbit Computers
X-Mailer: Mozilla 4.5 [en]C-AtHome0405 (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Are they there?
References: <qlTNIDAWOwL4Iwfj AT quayles1 DOT demon DOT co DOT uk> <382F5C66 DOT 8DA3DEE3 AT a DOT crl DOT com>
Lines: 44
Date: Mon, 15 Nov 1999 01:17:52 GMT
NNTP-Posting-Host: 24.113.36.103
X-Complaints-To: abuse AT home DOT net
X-Trace: news1.rdc1.bc.home.com 942628672 24.113.36.103 (Sun, 14 Nov 1999 17:17:52 PST)
NNTP-Posting-Date: Sun, 14 Nov 1999 17:17:52 PST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


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