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")
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")
放在最后面的#endif // !defined(AFX_STDAFX_H__A7C928D1_65BC_4070_8CC5_DAFECC18E0A1__INCLUDED_)的前面位置放错了?
放到stdafx.h中,再检查一下这个目录下有没有这个文件
no_namespace /
rename ("EOF", "adoEOF")
EOF名称冲突了,需要用rename 重命名。
检查很多遍了 有啊!!
是放在stdafx。h中
2 大部分情况要用\\ 有的时候用\比如#include语句
至于为什么会出这样的错误,可以参考http://support.microsoft.com/kb/166112这里的说明
至于为什么会出这样的错误,可以参考http://support.microsoft.com/kb/166112这里的说明