小弟刚学VC,碰到一基础问题:
这是原代码,是将HELLO WORLD !这个单词显示在窗口上:
void CHelloMFCView::OnDraw(CDC* pDC)
{
CHelloMFCDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
pDC->TextOut(0,0, "hello world!");
}编译时出现的错误信息:--------------------Configuration: helloMFC - Win32 Debug--------------------
Compiling...
helloMFCView.cpp
d:\program files\microsoft visual studio\myprojects\hellomfc\hellomfcview.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug/helloMFC.pch': No such file or directory
Error executing cl.exe.helloMFCView.obj - 1 error(s), 0 warning(s)在BUILD后提示的错误休息:
--------------------Configuration: helloMFC - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
helloMFC.cpp
D:\Program Files\Microsoft Visual Studio\MyProjects\helloMFC\helloMFC.cpp(43) : fatal error C1001: INTERNAL COMPILER ERROR
        (compiler file 'msc1.cpp', line 1786) 
         Please choose the Technical Support command on the Visual C++ 
         Help menu, or open the Technical Support help file for more information
MainFrm.cpp
helloMFCDoc.cpp
helloMFCView.cpp
Generating Code...
Error executing cl.exe.helloMFC.exe - 1 error(s), 0 warning(s)我将如何进行修改这些错误,为什么为出现这些错误呢??

解决方案 »

  1.   

    那个版本巨差,别用另外,学VC的话,E文是躲不了的
      

  2.   

    检查该文件头部有没有#include "stdafx.h"语句
      

  3.   

    是内部编译错误,其实常常的发生。特别是你改动了系统日期编译时容易发生。不过没什么。你只有了,你只要点击菜单build 的CLEAR,清除重新编译就可以了。重新全部编译。很多时刻都发生。重新编译就可以了
      

  4.   

    英语重要,VC的IDE没有多少东西,不要怕!
      

  5.   

    你肯定是没有生成解决方案之前,直接编译了,他才会这么说。你选rebuild all,也就是重新生成解决方案。