100分求救从C++builder5.0到6.0的数据连接

jackhandsame 2005-03-25 09:31:18
// *********************************************************************//
// Interface: rdoConnectionEvents
// Flags: (4112) Hidden Dispatchable
// GUID: {8B39DFBD-3647-11CF-814A-00AA00A40C25}
// *********************************************************************//
interface rdoConnectionEvents : public TDispWrapper<IDispatch>
{
void __fastcall Connect(TOLEBOOL ErrorOccurred)
{
_TDispID _dispid(/* Connect */ DISPID(2));
TAutoArgs<1> _args;
_args[1] = ErrorOccurred /*[VT_BOOL:0]*/; //这在5.0中运行正常在6.0中就不行
OleProcedure(_dispid, _args);
}

void __fastcall BeforeConnect(BSTR* ConnectString, TVariant* Prompt)
{
_TDispID _dispid(/* BeforeConnect */ DISPID(1));
TAutoArgs<2> _args;
_args[1] = ConnectString /*[VT_BSTR:1]*/;
_args[2] = Prompt /*[VT_VARIANT:1]*/;
OleProcedure(_dispid, _args);
}




Build
[C++ Warning] RDO_TLB.h(770): W8053 'TVariantInParam' is obsolete
[C++ Error] RDO_TLB.h(1095): E2015 Ambiguity between '_fastcall System::Variant::operator =(const bool)' and '_fastcall System::Variant::operator =(const short)'
[C++ Error] RDO_TLB.h(1119): E2015 Ambiguity between '_fastcall System::Variant::operator =(const bool)' and '_fastcall System::Variant::operator =(const short)'
[C++ Warning] PublicFuction.h(126): W8098 Multi-character character constant
[C++ Warning] Nurse.cpp(85): W8030 Temporary used for parameter 'str' in call to 'SpaceCopy(AnsiString &,int,int,int)'
[C++ Error] Nurse.cpp(130): E2015 Ambiguity between '_fastcall TDateTime::operator double() const' and '_fastcall TDateTime::operator int() const'
[C++ Error] Nurse.cpp(188): E2451 Undefined symbol 'exception'

那位大哥能帮帮我,我的E-Mail是jackhandsame@163.com
...全文
107 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
clong320 2005-04-18
  • 打赏
  • 举报
回复
不要用RDO,用ADO确保没问题。
happyct 2005-04-18
  • 打赏
  • 举报
回复
RDO是个什么东西?
icwin 2005-04-17
  • 打赏
  • 举报
回复
up

1,178

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder 数据库及相关技术
社区管理员
  • 数据库及相关技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧