关于VC的编译运行问题

来源:百度知道 编辑:UC知道 时间:2024/05/12 15:10:18
按了Ctrl+F7后,出现一个对话框,显示cannot compile the file 'D:\Documents and settings\zwb\Debug\Text1.txt'; no compile tool is associated with the file extension.
这是为什么,怎么解决呢?

把Text1.Txt文件从源文件中译出,错误提示的原意为:不能编译'D:\Documents and settings\zwb\Debug\Text1.txt'这个文件,没有编译工具与此类型的文件关联.

我想你的这个Text1.txt文件应该不是一个源文件,如果是一个C++源文件,你需要把这个文件改名为text1.cpp,然后再编译,如果不是,请从你的工程中移除此文件.

关了这个程序.
重新启动,重新编程,再试试.