Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

windows.h 1

Status
Not open for further replies.

joeGrammar

Programmer
Jun 4, 2001
162
CA
Does anyone know why sometimes when including <windows.h> other errors crop up in other system header files such as windef.h? This is annoying because there are some useful functions I'd like to use in windows.h
 
there exist some conflicts in defines
foe example
//windows.h
#if !defined(__WINDOWS_H)
#define __WINDOWS_H
....
#endif

in some MFC header

#undefine __WINDOWS_H

and you have in many places #include<windows.h> and in one place #include<someMFCheader.h>
in this case you should put #define __WINDOWS_H before some #include<windows.h>.You should see in context what to put instead of __WINDOWS_H because I don't know exactly what to put. John Fill
1c.bmp


ivfmd@mail.md
 
Well then, they did a terrible job of setting that up, didn't they? Is it any wonder why MSVC++ is poison compared to good ol unix compilers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top