Question:
"Windows.h" header file missing ?
Kapie
2010-01-01 04:50:11 UTC
hey guyzz i want start windows programming in C .. I have turbo c++ compiler . the only and the biggest problem that i am facing is that my compiler does not contains "windows.h" header file .. without windows.h i think i can not write any windows program . Can any1 tell how can i get windows.h. . plzz help me in solving the issue ?
Five answers:
Lisa A
2010-01-01 10:26:23 UTC
Download a Windows SDK. They contain the headers. Then point your Turbo C++ IDE to it.
anonymous
2016-04-09 10:54:57 UTC
For the best answers, search on this site https://shorturl.im/axkiQ



Nice question, Dale. The problem won't exist if you are including windows.h multiple times. There is a simple #ifndef statement braced around entire contents of a good header file, that protects it from redeclaration issues arising from multiple inclusions. It is typically as #ifndef _HEADERNAME__H #define _HEADERNAME__H #else .... .... Your header file contents Declarations, Definations... .... .... #endif You can do it yourself for your custom headers as well. This simply avoids, by checking the existence of a defined constant, the header file content text (Declarations and definitions) to be skipped if already included. --------------------------------------... Regarding Coadblocks, I haven't used it, but perhaps it tells the size of your entire code to be sent to compiler through acode. This must include the included file contents too. Hence may be the cause of increase in size. --------------------------------------... About DevC++ thing, your problem is not due to IDE. but DevCPP is surely a good option.
anonymous
2016-03-14 06:39:35 UTC
Include files take up no memory at all. They are just strings that are processed and removed when your code is compiled. They don't actually exist in that form within your executable program. Also, if both files need what is in windows.h then you have to include it into both or one of the files will not compile. The exception is if you are using an Visual Studio compiler in which case you can put it into stdafx.h rather than each individual file.
?
2010-01-01 04:58:45 UTC
Don't use Turbo C/C++ - it's ancient, decrepit, non-standard, unsupported and non-portable.



If you want to do Windows programming then get the free Visual Studio Express 2008 from microsoft.com.
?
2016-10-19 14:50:41 UTC
Windows.h Download


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...