急求高手帮忙!VC++6.0中调式的时候出现了一个错,找不到头文件stdafx.h,如何解决?

来源:百度知道 编辑:UC知道 时间:2024/05/29 11:02:58
调试后出现的错误是这样的:
Cannot open include file: 'stdafx.h': No such file or directory
执行 cl.exe 时出错.

1.要不注释掉
2.要不建立一个
添加
// stdafx.h : 标准系统包含文件的包含文件,
// 或是经常使用但不常更改的
// 特定于项目的包含文件
//

#pragma once

#include "targetver.h"

#define WIN32_LEAN_AND_MEAN // 从 Windows 头中排除极少使用的资料
// Windows 头文件:
#include <windows.h>

// C 运行时头文件
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>

// TODO: 在此处引用程序需要的其他头文件

选中 source heahder 把那个文件添加进去

没有这个文件

2楼正解