小弟初学者,电脑上装了Oracle 10g,这里想问的是如何用c++语言连接数据库
我的语句是:
_ConnectionPtr m_pConnection;
::CoInitialize(NULL);
m_pConnection.CreateInstance(_uuidof(Connection));
m_pConnection->PutConnectionTimeout(10);
sprintf(szDBString,"Provider=OraOLEDB.Oracle.1;Password=%s;Persist Security Info=True;User ID=%s;Data Source=   %s",m_strPswd,m_strUser,m_strIP);
try
{
m_pConnection->Open(szDBString, (class _bstr_t)m_strUser, (class _bstr_t)m_strPswd, adModeUnknown);
MessageBox("测试连接成功");
}
catch (_com_error e)
{
MessageBox("测试连接失败");
return ;
}
连接不上,请问我这问题在哪里啊???  或者说对数据库上有什么设置吗?  我是安装后,也没做什么设置