- 积分
- 297
- 明经币
- 个
- 注册时间
- 2015-8-10
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2015-10-1 09:27:42
|
显示全部楼层
每次都中断在这里:inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
我的open语句是CString open;
open.Format(_T("Provider=OraOLEDB.Oracle.1;Data Source=orcl;User ID=ren;Password=ren;Persist Security Info=True"));
//_bstr_t strConnect="Provider=OraOLEDB.Oracle;Data Source=ORCL;User ID=ren;Password=ren;";
HRESULT hr =m_pConnection.CreateInstance(__uuidof(Connection));
if(FAILED(hr))
{
AfxMessageBox(L"连接失败");//
return;
}
m_pConnection->Open((_bstr_t)open,"","",adModeUnknown); |
|