delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/20/16:58:03

From: kagel AT quasar DOT bloomberg DOT com
Date: Mon, 20 Jan 1997 16:24:53 -0500
Message-Id: <9701202124.AA03016@quasar.bloomberg.com >
To: wkersber AT caiw DOT nl
Cc: djgpp AT delorie DOT com
In-Reply-To: <01bc06d2$4790c4e0$190bb2c2@pb> (wkersber@caiw.nl)
Subject: Re: help me with struct!
Reply-To: kagel AT dg1 DOT bloomberg DOT com

   Errors-To: postmaster AT ns1
   From: "Martijn" <wkersber AT caiw DOT nl>
   Newsgroups: comp.os.msdos.djgpp
   Date: 20 Jan 1997 13:02:17 GMT
   Organization: CAI Westland/Kabelfoon
   Lines: 19
   Nntp-Posting-Host: 194.178.11.25
   X-Newsreader: Microsoft Internet News 4.70.1160
   Dj-Gateway: from newsgroup comp.os.msdos.djgpp
   Content-Type: text
   Content-Length: 618

   I have the following in a winsock.h file and get syntax error before ";"
   and a lot of other errors:

   typedef struct WSAData {
	   WORD wlow; 						<-- syntax error before ;
	   WORD whigh;						<-- syntax error before ;
	   char szDescription [WSADESCRIPTION_LEN+1];
	   char szSystemStatus [WSASYS_STATUS_LEN+1];
	   unsigned short imaxSockets;
	   unsigned short iMaxUdpdg;
	   char FAR *lpVendorInfo;					<--parse error before *
   } WSADATA;
   typedef WSADATA FAR *LPWSADATA				<-- parse error before * And
									Warning: C++ forbids declaration
									with no type or storage class.

It looks like the data type 'WORD' is not defined in the included header files.

-- 
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com

A proverb is no proverb to you 'till life has illustrated it.  -- John Keats

- Raw text -


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