precompiled header

This is a discussion on precompiled header within the Windows Programming forums, part of the Platform Specific Boards category; Whats the mean of precompiled header (stdafx.h) ?...

  1. #1
    l2u
    l2u is offline
    Registered User
    Join Date
    May 2006
    Posts
    630

    precompiled header

    Whats the mean of precompiled header (stdafx.h) ?

  2. #2
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    Look in the help files on MSVC++ for a definitiive answer to that. You really do not need it anyway. Deativate it in project options, General Precomiled heades check never use
    I'm just trying to be a better person - My Name Is Earl

  3. #3
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    http://en.wikipedia.org/wiki/Precompiled_header

    stdafx.h

    stdafx.h is commonly used in Microsoft Windows projects as the name of a file which describes include files (both standard system include files and project specific include files) that are used frequently but are changed infrequently. Since many C/C++ source files for Windows programs include stdafx.h, making small changes in it means the entire project needs to be recompiled and small errors in it cause large errors in the rest of the project.

    Compatible compilers (for example, Visual C++ 6.0 and newer) will precompile this file to reduce overall compile times. Visual C++ will also not compile anything before the #include "stdafx.h" in the source file, unless you uncheck the compile option /Yu'stdafx.h': it assumes all code in your source up to and including that line is already compiled.

    The AFX in stdafx.h stands for Application Framework eXtensions. AFX was the original abbreviation for the Microsoft Foundation Classes (MFC). This type of file can also have alternate names, including "StdInclude.h".

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Precompiled header question
    By donglee in forum C++ Programming
    Replies: 13
    Last Post: 01-22-2009, 12:23 AM
  3. precompiled header file
    By George2 in forum C++ Programming
    Replies: 20
    Last Post: 04-07-2008, 08:14 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

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