<windows.h>

This is a discussion on <windows.h> within the Windows Programming forums, part of the Platform Specific Boards category; Hi, i get a compile error when i try to #include <windows.h> Cannot open include file: 'windows.h': No such file ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    18

    <windows.h>

    Hi, i get a compile error when i try to #include <windows.h>

    Cannot open include file: 'windows.h': No such file or directory

    How do i fix this? thanks

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Perhaps you need to set up your include-path?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    18
    Could you possibly explain how? I apologize, for im new to source coding. Thanks

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,535
    That depends on the compiler/IDE you use. What do you use?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    18
    visual c++ 2005 express edition is the program im using to write in. Also allows me to compile.

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,535
    VS Express 2005 requires that you download the Windows SDK to write windows programs.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User
    Join Date
    May 2008
    Posts
    18
    thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C - including the <windows.h> header file
    By Jolu42 in forum C Programming
    Replies: 4
    Last Post: 05-13-2007, 01:05 PM
  2. Errore opening the include <windows.h>
    By rasheed in forum Windows Programming
    Replies: 5
    Last Post: 05-21-2006, 11:23 PM
  3. <windows.h> compiler help..!
    By The Brain in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2005, 08:47 PM
  4. <windows.h>
    By Jarrette in forum C++ Programming
    Replies: 11
    Last Post: 05-02-2003, 05:46 AM
  5. <windows.h>?
    By bluehead in forum C++ Programming
    Replies: 6
    Last Post: 11-20-2001, 06:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21