超级难题!ADO连接Excel出错!!求大虾帮助(▔/﹏\▔)
正在做一个管理系统。数据库是oracle。希望能连接Excel做报表。
但是一导入excel.exe就出错。
在stdafx.h里有#import "c:\program Files\Common Files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF") rename("BOF","adoBOF")
D:\我的文档\Desktop\项目\checking\excel.h(7881) : warning C4099: 'Parameter' : type name first seen using 'struct' now seen using 'class'
d:\我的文档\desktop\checking\release\msado15.tlh(97) : see declaration of 'Parameter'
D:\我的文档\Desktop\项目\checking\excel.h(7911) : error C2011: 'Parameters' : 'struct' type redefinition
D:\我的文档\Desktop\项目\checking\excel.h(10596) : error C2011: 'Errors' : 'struct' type redefinition
D:\我的文档\Desktop\项目\checking\excel.h(10617) : error C2011: 'Error' : 'struct' type redefinition
D:\我的文档\Desktop\项目\checking\excel.cpp(43000) : error C2039: 'GetApplication' : is not a member of 'Parameters'
d:\我的文档\desktop\checking\release\msado15.tlh(2035) : see declaration of 'Parameters'
D:\我的文档\Desktop\项目\checking\excel.cpp(43003) : error C2065: 'InvokeHelper' : undeclared identifier
D:\我的文档\Desktop\项目\checking\excel.cpp(43007) : error C2039: 'GetCreator' : is not a member of 'Parameters'
d:\我的文档\desktop\checking\release\msado15.tlh(2035) : see declaration of 'Parameters'
D:\我的文档\Desktop\项目\checking\excel.cpp(43014) : error C2039: 'GetParent' : is not a member of 'Parameters'
d:\我的文档\desktop\checking\release\msado15.tlh(2035) : see declaration of 'Parameters'
D:\我的文档\Desktop\项目\checking\excel.cpp(43021) : error C2039: 'Add' : is not a member of 'Parameters'
d:\我的文档\desktop\checking\release\msado15.tlh(2035) : see declaration of 'Parameters'
D:\我的文档\Desktop\项目\checking\excel.cpp(43032) : error C2509: 'GetCount' : member function not declared in 'Parameters'
d:\我的文档\desktop\checking\release\msado15.tlh(2035) : see declaration of 'Parameters'
D:\我的文档\Desktop\项目\checking\excel.cpp(43039) : error C2063: 'Item' : not a function
D:\我的文档\Desktop\项目\checking\excel.cpp(43039) : error C2040: 'Item' : 'struct IDispatch *(const struct tagVARIANT &)' differs in levels of indirection from 'class _com_ptr_t<class _com_IIID<struct _Parameter,&struct __s_GUID _GUID_0000050c_0000
_0010_8000_00aa006d2ea4> >'
D:\我的文档\Desktop\项目\checking\excel.cpp(43039) : fatal error C1903: unable to recover from previous error(s); stopping compilation
执行 cl.exe 时出错.
checking.exe - 1 error(s), 0 warning(s)