#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
现在我好好的程序怎么突然提示这块有错误

解决方案 »

  1.   

    这句话的意思是你没有定义宏__AFXWIN_H__,可能是头文件的依赖关系造成的,需要检查自己的程序
      

  2.   

    #error include 'stdafx.h' before including this file for PCH错误: 在包含这个文件之前请先包含 "stdafx.h"。所以,应该把
    #include "stdafx.h"
    这一句放在其他#include之前。请仔细检查所有头文件的包含顺序。
      

  3.   

    你看看你的stdafx.h里有没有什么问题》/

      

  4.   

    把 stdafx.h 设为第一个 include在 stdafx.h 中把 afxwin.h 设为第一个 include
      

  5.   

    应该先 include <stdafx.h>
    然后再  include 其他
      

  6.   

    把目录下 *.pch文件删掉,再rebuild all