Precompiled Header Files
For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.
For the latest documentation on Visual Studio 2017, see Precompiled Header Files on docs.microsoft.com. These files are used to build a precompiled header file Projname.pch and a precompiled types file Stdafx.obj.
These files are located in the Projname directory. In Solution Explorer, Stdafx.h is in the Header Files folder, and Stdafx.cpp is located in the Source Files folder.
|Stdafx.h||An include file for standard system include files and for project-specific include files that are used frequently but are changed infrequently.|
You should not define or undefine any of the _AFX_NO_XXX macros in stdafx.h; see the Knowledge Base article "PRB: Problems Occur When Defining _AFX_NO_XXX". You can find Knowledge Base articles in the MSDN Library or at http://support.microsoft.com/.
|Stdafx.cpp||Contains the preprocessor directive |