1个回答
2015-07-27
展开全部
pCon->ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=admin;Data Source=Agenda";
try
{
pCon->Open("","","",adConnectUnspecified);
}
catch(_com_error *e)
{
::MessageBox(NULL,_T("无法打开"),_T("提示"), MB_OK | MB_ICONWARNING);
}
try
{
pCon->Open("","","",adConnectUnspecified);
}
catch(_com_error *e)
{
::MessageBox(NULL,_T("无法打开"),_T("提示"), MB_OK | MB_ICONWARNING);
}
追问
我要b语言的源码
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询