举报

关于 #include "stdafx.h",#include "MsgTest.h",#include "MsgTestDlg.h",求助!!!!

0

在我的Visual C++ 6.0里,为什么编译不了#include "stdafx.h"?以及#include "MsgTest.h",#include "MsgTestDlg.h"?

编译信息:

--------------------Configuration: 程序代码及 - Win32 Debug--------------------
Compiling...
1.cpp
d:\vc++的文件夹\程序代码及\1.cpp(1) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
执行 cl.exe 时出错.

程序代码及.exe - 1 error(s), 0 warning(s)

--------------------Configuration: 程序代码及 - Win32 Debug--------------------
Compiling...
1.cpp
d:\vc++的文件夹\程序代码及\1.cpp(2) : fatal error C1083: Cannot open include file: 'MsgTest.h': No such file or directory
执行 cl.exe 时出错.

程序代码及.exe - 1 error(s), 0 warning(s)

--------------------Configuration: 程序代码及 - Win32 Debug--------------------
Compiling...
1.cpp
d:\vc++的文件夹\程序代码及\1.cpp(3) : fatal error C1083: Cannot open include file: 'MsgTestDlg.h': No such file or directory
执行 cl.exe 时出错.

程序代码及.exe - 1 error(s), 0 warning(s)

不知道为什么,求助!

ava
陈成健

2020-2-28

举报
0

学习编程,就要注意看编译器给你的反馈。你的编译器已经告诉你错误原因了,三个错误的原因都一样:Cannot open include file: 'xxx.h': No such file or directory

另外,不要再用 VC6 了,原因详见:https://codebus.cn/yangw/post/warning-about-vc6

ava
慢羊羊

2020-2-28

技术讨论社区
相关提问