最近在看《深入浅出MFC》,但是在编译随书的源码时却总是出错;例如第二章的Flow.cpp:
#include <iostream.h>
#include <string.h>class CDemo
{
public:
       CDemo(const char* str);
       ~CDemo();
private:
       char name[20];
};CDemo::CDemo(const char* str)
{
  strncpy(name, str, 20);
  cout << "Constructor called for " << name << '\n';
}CDemo::~CDemo()
{
  cout << "Destructor called for " << name << '\n';
}void func()
{
  CDemo LocalObjectInFunc("LocalObjectInFunc");  // in stack
  static CDemo StaticObject("StaticObject");     // local static
  CDemo* pHeapObjectInFunc = new CDemo("HeapObjectInFunc"); // in heap  cout << "Inside func" << endl;}CDemo GlobalObject("GlobalObject");  // global staticvoid main()
{
  CDemo LocalObjectInMain("LocalObjectInMain"); // in stack
  CDemo* pHeapObjectInMain = new CDemo("HeapObjectInMain"); // in heap  cout << "In main, before calling func\n";
  func();
  cout << "In main, after calling func\n";}
出错提示是:
Compiling...
Flow.cpp
e:\深入浅出 mfc\dissect\flow.02\flow.cpp(27) : 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
Error executing cl.exe.Flow.exe - 1 error(s), 0 warning(s)
用MSDN介绍的方法也解决不了,网上介绍的rebuild all 以及禁用预编译头文件也不行,请问各位请是怎么回事?我用的是Win98+VC6.0创天中文版,救救我啊!