5
Contributors
4
Replies
30
Views
5 Years
Discussion Span
Last Post by asifalizaman
0

It should have come with your compiler. What compiler are you using? If your compiler doesn't find it, maybe the include-paths are not set correctly. Have you done a file-search for "windows.h"?

With MinGW, you can download and extract the win32 API headers and libraries from this page. But, normally, this is included in the installation.

You cannot just download windows.h, because that header is just the tip of the iceberg. It's basically a header that includes just about every possible function of the Win32 API, through many underlying headers (which is, of course, an absolutely terrible way to do things, but, hey, that's Microsoft for you). Using it also requires linking to a long list of libraries (usually setup by default on your compiler configurations, when installed, or when creating a new "windows" project).

0

In both Visual C++ 2010 Express and Code::Blocks with the Cygwin GCC compiler, using,#include <windows.h> works fine.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.