Archived

This topic is now archived and is closed to further replies.

Vaporisator

winbase.h in console apps

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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"

Share this post


Link to post
Share on other sites
MSDN online:

Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.


"A society without religion is like a crazed psychopath without a loaded .45"

Share this post


Link to post
Share on other sites
MSDN online:

Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.


"A society without religion is like a crazed psychopath without a loaded .45"

Share this post


Link to post
Share on other sites