Author: Koundinya Veluri
Date: 04:09:15 09/11/03
Go up one level in this thread
On September 11, 2003 at 06:52:34, Koundinya Veluri wrote: >>#ifdef INC_OLE1 >>#include <ole.h> >>#else >>#include <ole2.h> >>#endif /* !INC_OLE1 */ >> >>I have a feeling the GUI version #defines INC_OLE1 somewhere because if I remove >>the #else block it compiles fine. > >That feeling was wrong. Removing the #else block does work but ole.h doesn't >even exist so ole2.h must also be included in the GUI version but for some >reason it compiles okay there. #ifndef NOGDI #ifndef _MAC #include <winspool.h> #ifdef INC_OLE1 #include <ole.h> #else #include <ole2.h> #endif /* !INC_OLE1 */ #endif /* !MAC */ #include <commdlg.h> #endif /* !NOGDI */ It works fine if I #define NOGDI before including TBIndex.h. I don't see why I need to manually define it when it works fine if I include windows.h in a simple console program without defining anything. #if defined(RC_INVOKED) /* Turn off a bunch of stuff to ensure that RC files compile OK. */ //... #define NOGDI //... #endif This is the only place windows.h defines NOGDI. Under project settings/preprocessor, I have WIN32;NDEBUG;_CONSOLE.
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.