中国体育课:vc++编译错误

来源:百度文库 编辑:神马品牌网 时间:2024/04/27 08:02:05
为什么创建了一个MFC工程后先编译后加按钮没错误,而先加按钮后编译出现如下错误?
c:\my\ak\akdlg.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug/ak.pch': No such file or directory
(该行为#include "stdafx.h")

哦,这个问题好!
解决的方法是:在File View中找到stdafx.cpp文件,双击进入它,然后点"编译",然后再链接.如果你的其他代码都没问题的话,这样就应该可以了