编译器提示如下所述:CDDraw.cpp
c:\documents and settings\administrator\桌面\第03章代码\cddraw类\cddraw.h(22) : 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
执行 cl.exe 时出错.CDDraw.exe - 1 error(s), 0 warning(s)
请高手帮忙! 
  
是哪里出了问题?

解决方案 »

  1.   

    以上编译器问题已经解决。
    但是在编译的时候却出现了很多类似的编译错误,亟待高手指教!!代码如下:
    CDDraw.cpp
    c:\使用cddraw类\cddraw.h(22) : error C2146: syntax error : missing ';' before identifier 'lpDD'
    c:\使用cddraw类\cddraw.h(22) : error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
    c:\使用cddraw类\cddraw.h(22) : error C2501: 'lpDD' : missing storage-class or type specifiers
    c:\使用cddraw类\cddraw.h(23) : error C2146: syntax error : missing ';' before identifier 'lpDDSPrimary'
    c:\使用cddraw类\cddraw.h(23) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
    c:\使用cddraw类\cddraw.h(23) : error C2501: 'lpDDSPrimary' : missing storage-class or type specifiers
      

  2.   

    首先检查有没有安装DirectX的SDK。
    然后检查头文件的包含是不是正确,包括在VS的环境目录设置
    然后再检查一下有没有少打一个分号之类的看看。