[求助]ado连接问题
void CDoctorDlg::OnDisplay() {
// TODO: Add your control notification handler code here
m_Connection.CreateInstance(_uuidof(Connection));
m_Record.CreateInstance(_uuidof(Recordset));
try
{
//m_Connection->Open("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=c:\\doctor.mdb","","",adModeUnknown);
m_Connection->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\doctor.mdb;Persist Security Info=False","","",adModeUnknown);
AfxMessageBox("chenggong");
}
catch(_com_error e)
{
AfxMessageBox(e.ErrorMessage());
}
}
上面总是异常,谁知道有什么错误阿