Fatal Error C1010
unexpected end of file while looking for precompiled header directiveA precompiled header was specified, but it did not contain a precompiled header directive.This error can be caused by specifying an incorrect file as a header file, or by specifying an include file with the /Yu (Use Precompiled Header) command line option that is not listed in the source file as an include file.

解决方案 »

  1.   

    上面提出来的错误已经解决了,原来是我的一个对象声明,是声明在类的定义里边了.
    这个问题解决了.但是经过我修改之后,编译完后copy到c:\windows\system下后,
    我运行"控制面板"后,却弹出一个对话框,说是下列错误:
    124行的assert()函数出错,我在程序中是这样调用assert()的:
      
       CTestcplApp *hd=h_ms;  //h_ms的定义:CTestcplApp *h_ms;
       assert(hd);
       h_ms已经在前边定义并用当前指针初始化(即是用this指针),到底错误错在哪里?
       请大家继续指教.