用VS2008 生成 console 工程在编译后时会出现 【Cannot open include file: 'stdafx.h': No such file or directory】错误信息。
解决办法:如果是console,去掉#include "stdafx.h" 语句. 这个是建一个自动工程时自动生成的,不用也可以。
但是在注释掉此行后有时会出其它的编译错误。在按相应的提示错误来解决问题.
用VS2008 生成 console 工程在编译后时会出现 【Cannot open include file: 'stdafx.h': No such file or directory】错误信息。
解决办法:如果是console,去掉#include "stdafx.h" 语句. 这个是建一个自动工程时自动生成的,不用也可以。
但是在注释掉此行后有时会出其它的编译错误。在按相应的提示错误来解决问题.