How to get Windows.h and associated filesI


  1. Posts : 4
    Windows 7
       #1

    How to get Windows.h and associated filesI


    I am trying to find the header file Windows.h and the associated header files in order to compile a piece of code I am developing. Can anyone help. I've tried downloading Visual Studio 2008 SDK as recommended elsewhere but no joy.
      My Computer


  2. Posts : 1,641
    Dual-boot: Windows 7 HP 32-bit SP1 & Windows XP Pro 32-bit SP2.
       #2

    Please complete/update your pc specs, so we can help you. Also Maryland is not an Operating System.
      My Computer


  3. Posts : 4
    Windows 7
    Thread Starter
       #3

    "Please complete/update your pc specs, so we can help you.:

    I posted my system specs.
      My Computer


  4. Posts : 2,468
    Windows 7 Ultimate x64
       #4

    Quite strange that whatever C/C++ IDE you're using for developing doesn't actually include those. Any Windows development environment must include this and all other headers it includes for any kind of programming.

    Does a simple
    Code:
    #include <windows.h>
    throws any compilation error?
      My Computer


  5. Posts : 4
    Windows 7
    Thread Starter
       #5

    windows.h must be there


    I tried compilation of

    #include <windows.h>

    with no comilation errors. That's good, but an indexed search of my computer cannot find windows.h or any of it's related header files. Can anyone explain why that's the case.
      My Computer


  6. Posts : 2,468
    Windows 7 Ultimate x64
       #6

    If it compiles correctly, the file is somewhere in the computer, but it appears that the search cannot find it. I would not trus too much the built in Win7 file search, as that index seems to get outdated quite easily and misses many files. Just use a more serios search tool and you'll find it. Most likely, those header files will be located in the program folder of the IDE.
      My Computer


  7. Posts : 4
    Windows 7
    Thread Starter
       #7

    Thanks, I'll look for a more serious search engine for my PC,
      My Computer


 

Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:52.
Find Us