stdafx.h

This is a discussion on stdafx.h within the C++ Programming forums, part of the General Programming Boards category; It's a precompiled header file, right? I was working through a tutorial from this site (link below) and it turns ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    7

    stdafx.h

    It's a precompiled header file, right? I was working through a tutorial from this site (link below) and it turns out I don't have it...?

    Can I get it?


    A First Windows Application - Cprogramming.com

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,159
    Turn off the precompiled headers feature and just include the headers necessary.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,915
    You typically create them. You don't "get" them anywhere.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. stdafx.h: no such file or directory - what to do?
    By splazz in forum C++ Programming
    Replies: 7
    Last Post: 12-24-2009, 06:16 PM
  2. doesn't recognize stdafx.h
    By GiantFurby in forum C++ Programming
    Replies: 4
    Last Post: 03-24-2009, 11:42 AM
  3. stdafx.h and the FreeType library
    By Mastadex in forum Windows Programming
    Replies: 1
    Last Post: 11-23-2007, 01:36 PM
  4. stdafx.h question
    By ssjnamek in forum C++ Programming
    Replies: 5
    Last Post: 08-13-2005, 12:31 AM
  5. stdafx.h
    By HQSneaker in forum Windows Programming
    Replies: 10
    Last Post: 08-13-2004, 01:19 PM

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