从自己的积累库中拷贝了一个类的.cpp .h文件,但是在新的工程中加入文件后,编译出现
fatal error C1010: unexpected end of file while looking for precompiled header directive
其原因为在封装这个类是的工程中没有stdAfx.h stdAfx.cpp,
当前工程则由VC6自动生成了这两个文件。
因此需要在.cpp文件中添加头文件:#include "stdAfx.h"
相同的.cpp .h文件如果在没有自动生成stdAfx.h stdAfx.cpp的工程中引入,则不会出现fatal error C1010错误。