"Jens Marder" <fc**********@yahoo.com> wrote in message
news:44**********@x-privat.org...
stdafx.h is used for "MFC"-Programming (Microsoft Foundation Classes).
That is the old Windows GUI Library before WTL and nowadays .NET .
Eh? stdafx.h is used for precompiled headers. Regardless of MFC/WTL/ect.
In stdafx.h one will place the header files that is often used in ones
program.
Lets say you include the same file in each of your source files (.cpp) then
the compiler will compile the header file each time it compiles a source
file. To save time you can add your includes like windows.h in stdafx.h and
it will be "precompiled" so the compiler do not have to do this each time.
In vc7 and above the precompiled headers is supported so far i know. And you
do not need to use the feature.
If you have a compiler that do not support this, you can still use the
stdafx.h file. It will just not be precompiled, but compiled each time its
included in a source file.
//eric