出错位置:
#ifdef _WINDOWS_
#error WINDOWS.H already included.  MFC apps must not #include <windows.h>
#endif 
提示错误如下:
d:\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
请问是怎么回事?

解决方案 »

  1.   

    可能是别的地方引用了windows.h
    试试这样:
    #import "c:\program files\common files\system\ado\msado15.tlb"\
    no_namespace \
    rename ("EOF", "adoEOF")
      

  2.   

    碰到过,你的下面这条语句应在一行中,不要分开#import "c:\program files\common files\system\ado\msado15.tlb" no_namespace  rename ("EOF", "adoEOF")
      

  3.   

    我自己解决了,是没有初始化:AfxOleInit();