Solved

What going on?!

Posted on 1998-03-18
6
178 Views
Last Modified: 2010-04-10
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.
0
Comment
Question by:yolis
  • 3
  • 2
6 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 20 total points
ID: 1183603
You should be including windows.h, which includes other include files.  Don't include the other include files dirrectly, let windows.h do it for you.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1183604
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.

0
 

Author Comment

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

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 22

Expert Comment

by:nietod
ID: 1183606
It should.  Does it recognize any windows API functions aor are they all undefined?
0
 

Author Comment

by:yolis
ID: 1183607
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...

0
 
LVL 22

Expert Comment

by:nietod
ID: 1183608
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel/Word Add-in in what language? 5 107
Would like to move button in a function 3 72
computer science syllabus 3 70
passing data from one form to another form in c++ 27 75
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now