Author: Uri Blass
Date: 01:19:47 11/06/02
Go up one level in this thread
On November 05, 2002 at 22:30:41, Russell Reagan wrote: >On November 05, 2002 at 17:38:25, Brian Kostick wrote: > >>You can limit MSVC's (windows.h) use of extra header files with: >>#define WIN32_LEAN_AND_MEAN >>as the first code line of your files. > >Unless you are making a full blown Win32 windowed application (like a GUI) then >you probably don't need windows.h. No I need it Without windows.h I get a lot of warning and cannot support the winboard commands. For example, if you only include windows.h >because you want to use GetTickCount() to get the current time, you could >include winbase.h instead, which is much smaller than including windows.h. If >you look in windows.h it includes everything under the sun. After including winbase.h I get 102 errors(all of them in winbase.h that I did not write): Compiling... main.c c:\program files\microsoft visual studio\vc98\include\winbase.h(216) : error C2061: syntax error : identifier 'DWORD' c:\program files\microsoft visual studio\vc98\include\winbase.h(217) : error C2061: syntax error : identifier 'InternalHigh' c:\program files\microsoft visual studio\vc98\include\winbase.h(217) : error C2059: syntax error : ';' Uri
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.