Re: HELP! where is windows.h ??



"Robert A. Macy" <Robert.A.Macy.1n8ohp@xxxxxxxxxxxxxxxxxxxxx> wrote in
message news:Robert.A.Macy.1n8ohp@xxxxxxxxxxxxxxxxxxxxxxxx
> everything I need has the line...
> #include windows.h

Yup.

Well, there are two major classes of headers that you typically need to be
concerned about when developing under Win32. One is the set of headers
required by the C and C++ runtimes. The other is the set of headers required
by the Win32 Platform SDK.

The former is distributed with the compiler. A _subset_ of the latter is
sometimes distributed with the compiler. In all cases, however, the _full_
set of the most recent PSDK headers is available in the free PSDK download
here:

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

Once you have the headers, the next step is to set the environmental
variable INCLUDE so that the compiler knows where to search and knows the
order to search folders for headers. It is a good idea to have the PSDK
headers searched _first_ like so

INCLUDE=C:\MSSDK\Include\.;C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\include\;C:\Program Files\Microsoft Visual
Studio\VC98\atl\include;C:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual
Studio\VC98\include

The set of includes for you might well be different from my example above if
your toolkit does not include the MFC and ATL headers or if the installation
directories are different on your machine.

Regards,
Will


.



Relevant Pages

  • Re: Using GDI+ in C++
    ... out how to modify library or API headers. ... that purpose, today, the compiler has a few options that ... The reason for it can be seen by looking at the output of: ... the definitions of the symbols mentioned in the complaints. ...
    (microsoft.public.vc.language)
  • Re: precompiled headers question
    ... All my source files are not in the same folder. ... which contains headers and sources of publishing functionality. ... That is because the compiler will look for the PCH instead of trying to load ... extern int MyFunction; ...
    (microsoft.public.dotnet.languages.vc)
  • Re: C and other programming languages
    ... language of choice, otherwise I wouldn't be using it in the first place. ... The main problem is that headers are not ... useless because they are often highly compiler specific. ... So setting the size of a string, ...
    (comp.lang.misc)
  • Re: PROS/CONS: #define BEGIN {
    ... It could cause the compiler to assume that subsequent code ... > detect and report a syntax error, but it could report any number of ... check for syntax errors in the headers. ... gcc usually dies with a parse error. ...
    (comp.lang.c)
  • Re: thoughts for a C compiler
    ... system headers for more traditional FFI reasons). ... But that still requires handcoding the interface and figuring it ... do the wrapping in your own scripting language. ... and deploying a C compiler, ...
    (comp.lang.misc)

Loading