我用ADO连接Oracle,如何判断有无连接上? 判断 connect 的 State 如果是 真 表示连上了,假 的话表达失败 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 try{... m_pConnection->Open (conn,"","",-1); } catch(_com_error * e) { AfxMessageBox(e->ErrorMessage()); } catch(...) { long errorcount=m_pConnection->GetErrors ()->GetCount (); _bstr_t add; CString errormsg; for (short i=0;i<errorcount;i++) { add=m_pConnection->GetErrors ()->GetItem (COleVariant((short)i))->GetDescription (); errormsg.Insert (0,(char*)add); errormsg+="\r"; } AfxMessageBox(errormsg); ExitProcess(0); } 一个关于修改表中数据的问题 关于查询语句中*和具体列的问题 菜鸟问题 使用oracle对表做统计分析 无法启动oracleorahome81managermentserver??请高手指点! oracle问题 mysql->sqlserver->oracle出现乱码问题 drop use 的问题 隐式游标和显示游标的综合运用问题--急 新手上路:关于Oracle权限问题 按日期查询 苦恼小妹
{
...
m_pConnection->Open (conn,"","",-1);
}
catch(_com_error * e)
{
AfxMessageBox(e->ErrorMessage());
}
catch(...)
{
long errorcount=m_pConnection->GetErrors ()->GetCount ();
_bstr_t add;
CString errormsg;
for (short i=0;i<errorcount;i++)
{
add=m_pConnection->GetErrors ()->GetItem (COleVariant((short)i))->GetDescription ();
errormsg.Insert (0,(char*)add);
errormsg+="\r";
}
AfxMessageBox(errormsg);
ExitProcess(0);
}