#include "stdafx.h" , All C++ compilers have one serious performance problem to deal with. Compiling C++ code is a long, slow process. Compiling headers included on top of C++ files is a very long, slow process. Compiling the huge header structures that form part of Windows API and other large API libraries is a very , very long, slow process. To have to do it over, and over, and over for every single Cpp source file is a death knell. This is not unique to Windows but an old problem faced by all compilers that have to compile against a large API like Windows. The Microsoft compiler can ameliorate this problem with a simple trick called precompiled headers . The trick is pretty slick: although every CPP file can potentially and legally give a sligthly different meaning to the chain of header files included on top of each Cpp file (by things like having different macros #define'd in advance of the includes, or by including the headers in di...
Learn C++ Programming fast and easy, find C++ Program Codes