Link to home
Start Free TrialLog in
Avatar of yolis
yolis

asked on

What going on?!

Ok, Im using c++ for windows of borland ver. 4 on windows 95.
for some reason when i include .h file that includes in it winnt.h, like winbase.h, I get about 30 error messages from winnt.h, so i cant run the program!, is my winnt.h screwed up?! or can i do somthing to fix it?!
please help...
Yoli.
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To make your program compile faster, #define WIN32_LEAN_AND_MEAN before #including <windows.h>.  If the above is defined, windows.h does not include some less commonly used include files.

Avatar of yolis
yolis

ASKER

But when i only include windows.h it says that it doesnt know Sleep()..
hmm anyway, illl try it again, thanx

It should.  Does it recognize any windows API functions aor are they all undefined?
Avatar of yolis

ASKER

It recognizes most of of the API functions, but Sleep() it doesnt, could it be because Sleep() is a win32 function?
I am using platform of win 3.x, because when i try to use the win32 platform, it writes in the error window: BCW: cannont build using requested tools.
...please help...

I can't check right now (I'll try to check later) but I'm 99% sure that Sleep() is part of the windows 3.x API.

It sounds to me like the problems is with BCW.  The requested tools might mean its compiler, linker, etc.  This is not an area I'm likely to be able to help you much in, but I'm willing to try.