小弟使用的是oracle 9i
为什么执行下面代码出错:
try
{
CString strConnect;
strConnect.Format("Provider=OraOLEDB.oracle.1;Password=%s;UserID=%s;"
"Data Source=%s;Persist Security Info=True",strPwd,strUser,strSource); m_pConnection->Open((_bstr_t)strConnect,"","" ,-1); }
catch (_com_error e)
{
AfxMessageBox(e.ErrorMessage());
}
运行时对话框提示:
未指定的错误。
糊涂死我了
为什么执行下面代码出错:
try
{
CString strConnect;
strConnect.Format("Provider=OraOLEDB.oracle.1;Password=%s;UserID=%s;"
"Data Source=%s;Persist Security Info=True",strPwd,strUser,strSource); m_pConnection->Open((_bstr_t)strConnect,"","" ,-1); }
catch (_com_error e)
{
AfxMessageBox(e.ErrorMessage());
}
运行时对话框提示:
未指定的错误。
糊涂死我了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货