标题:[求助]ado连接问题
只看楼主
赤冰
Rank: 1
等 级:新手上路
帖 子:397
专家分:0
注 册:2007-1-22
 问题点数:0 回复次数:0 
[求助]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());
}

}
上面总是异常,谁知道有什么错误阿
搜索更多相关主题的帖子: ado 
2007-02-02 08:54



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-119248-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.027101 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved