Excerpted from the "VC Programming Guide" pre-compiled head file: stdafx.cpp, stdafx.h These two files are used to create a precompiled header file xxxProject.pch and a predefined type file stdafx.obj. Since the MFC architecture is very large, there is a lot of header files, and if you compile, you will be compared. Therefore, we put all commonly used MFC headers in stdafx.h, such as afxwin.h, afxext.h, afxdisp.h, afxcmn.h (automatically contain
If you don't want to use the stdafx.h file (you want to manually add
In VC6.0. There is a compilation option /yu"stdafx.h "can not contain this.
Select "Project" Project Settings -> C / C -> Premonstration Head -> Create / Use Premetrics (Select "Do not use pre-compiled head")
If this switch is in the state of "using the precompiled head", each .cpp file must have a #include "stdafx.h" instruction