winbase.h in console apps
So I am talking about VC6. My problem is:
- I make a fresh new and empty console app (Win32 of course)
- then add an empty .cpp file
- then I include iostream.h
- and then I am so perkily to include winbase.h
If I am trying to compile this, I get 74 errors in winbase.h, mostly about missing definitions (DWORD, WORD, wYear,...), missing brackets, missing semi-colons, etc.
What the heck is going on? Shouldn''t at least the standard M$ headers work (actually they work in non-console apps)?
Thanx in advance for saving my keyboard and my teeth
Yesterday we still stood at the verge of the abyss,
today we''re a step onward!
Thanx that worked perfectly!
But why doesn''t winbase.h include windows.h on its own?
Yesterday we still stood at the verge of the abyss,
today we''re a step onward!
But why doesn''t winbase.h include windows.h on its own?
Yesterday we still stood at the verge of the abyss,
today we''re a step onward!
Strange problem, but now that I know how to avoid it...
Yesterday we still stood at the verge of the abyss,
today we''re a step onward!
Yesterday we still stood at the verge of the abyss,
today we''re a step onward!
I dont think winbase.h is intended for direct inclusion in a user program. Same goes for a lot of the other windows include files. Save yourself some trouble and just include windows.h.
"A society without religion is like a crazed psychopath without a loaded .45"
"A society without religion is like a crazed psychopath without a loaded .45"
Well, it''s just because MSDN said, the relevant include would be winbase.h
Yesterday we still stood at the verge of the abyss,
today we''re a step onward!
Yesterday we still stood at the verge of the abyss,
today we''re a step onward!
MSDN usually says something like this: "Declared in winbase.h, include windows.h"
"A society without religion is like a crazed psychopath without a loaded .45"
"A society without religion is like a crazed psychopath without a loaded .45"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement