
复制_ConnectionPtr m_pConn;                  CString m_sConn="Provider=MSDAORA.1;Data Source=sode_192.168.3.9"; //使用              ms连接库,连接sode为SID,
服务器托管数据r数
192.168.3.9为机器ip                  m_pConn.CreateInstance("ADODB.Connection");                  try                  {                      HRESULT hr=m_pConn->Open((_bstr_t)m_sConn,库及
"sodeUser","sodePw",adConnectUnspecified);                         if (FAILED(hr))                      {                          AfxMessageBox("不能连接数据库 source!");                          return FALSE;                      }                  }                  catch(_com_error e)                  {                      AfxMessageBox("不能打开数据库 error!");                      return FALSE;                  }             1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.
免费信息发布网