Windows.h?

This is a discussion on Windows.h? within the Windows Programming forums, part of the Platform Specific Boards category; I've seen some tutorials that require you to include windows.h (a header file, I assume), but I don't seem to ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Location
    New Zealand
    Posts
    4

    Windows.h?

    I've seen some tutorials that require you to include windows.h (a header file, I assume), but I don't seem to have it. From what I've read, it's a useful bunch of #include's stuffed into one.

    Is it useful? Where can I get it?

  2. #2
    "Why use dynamic memory?"
    Join Date
    Aug 2006
    Posts
    186
    windows.h is a header that makes your program runs in windows mode (the normal window that u can resize and do other stuff like minimize and maximize)
    "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg."-Bjarne Stroustrup
    Nearing the end of finishing my 2D card game! I have to work on its 'manifesto' though <_<

  3. #3
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,479
    Older compilers and MSVC++2005 express will not have windows.h included. The only way to get it is to download the platform SDK
    I'm just trying to be a better person - My Name Is Earl

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    903
    Quote Originally Posted by Hussain Hani
    windows.h is a header that makes your program runs in windows mode (the normal window that u can resize and do other stuff like minimize and maximize)
    Huh huh, no. It does mean that your code will be Windows-specific (i.e. non portable) but including windows.h will not make your program pass from console to a GUI-based application.

  5. #5
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    What windows.h does do is give you the functions to run in windows mode, but it is possible to make a command window using windows.h. If you want to make a win32 GUI, you use certain functions from windows.h. Including the windows header file will not ensure a GUI.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems reading windows.h
    By yaya in forum Windows Programming
    Replies: 7
    Last Post: 05-22-2009, 03:33 PM
  2. windows.h no such file or directory
    By FingerPrint in forum Tech Board
    Replies: 11
    Last Post: 08-26-2006, 10:51 PM
  3. Windows.h help
    By Mustang5670 in forum C Programming
    Replies: 3
    Last Post: 01-02-2004, 11:59 AM
  4. UNICODE and windows.h help
    By nextus in forum Windows Programming
    Replies: 3
    Last Post: 03-02-2003, 03:13 PM
  5. windows.h without the mouse support
    By ()Q() in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2002, 08:57 PM

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