Compiling...
StdAfx.cpp
vc++版本\debug\msado15.tlh(1390) : error C2629: unexpected 'short ('
vc++版本\debug\msado15.tlh(1390) : error C2238: unexpected token(s) preceding ';'
vc++版本\debug\msado15.tlh(3293) : error C2629: unexpected 'short ('
vc++版本\debug\msado15.tlh(3293) : error C2238: unexpected token(s) preceding ';'
vc++版本\stdafx.h(40) : error C2146: syntax error : missing ';' before identifier 'rename'
vc++版本\stdafx.h(40) : error C2501: 'no_namespace' : missing storage-class or type specifiers
vc++版本\stdafx.h(40) : fatal error C1004: unexpected end of file found双击前面的错误提示 就指向
    VARIANT_BOOL EOF;
    __declspec(property(get=GetAbsolutePage,put=PutAbsolutePage))
    PositionEnum_Param AbsolutePage;最后两个错误指向
#import "C:\Program Files\Common Files\System\ado\msado15.dll"
no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF")

解决方案 »

  1.   

    你把这条语句加在stdafx.h的什么地方了?
      

  2.   

    如楼上所说, 检查一下C:\Program Files\Common Files\System\ado\msado15.dll 是否存在
      

  3.   


    放在最后面的#endif // !defined(AFX_STDAFX_H__A7C928D1_65BC_4070_8CC5_DAFECC18E0A1__INCLUDED_)的前面位置放错了?
      

  4.   

    将#import "C:\Program Files\Common Files\System\ado\msado15.dll"。
    放到stdafx.h中,再检查一下这个目录下有没有这个文件
      

  5.   

    #import "c:/program files/common files/system/ado/msado15.dll" /  
        no_namespace /  
        rename ("EOF", "adoEOF")      
    EOF名称冲突了,需要用rename 重命名。
      

  6.   


    检查很多遍了 有啊!!
    是放在stdafx。h中
      

  7.   

    vc++ 里面的路径是“/”?不是“\”?1 路径可以是 /
    2 大部分情况要用\\ 有的时候用\比如#include语句
      

  8.   

    看第1390行是什么,用到了什么类型,然后用rename改名
    至于为什么会出这样的错误,可以参考http://support.microsoft.com/kb/166112这里的说明
      

  9.   

    看第1390行是什么,用到了什么类型,然后用rename改名
    至于为什么会出这样的错误,可以参考http://support.microsoft.com/kb/166112这里的说明