运行出现debug error
R6010  abort()  has  been  called

解决方案 »

  1.   

    捕捉 _com_error 异常,看看提示什么内容
      

  2.   

    ADO异常捕获
    try
    {
    //你的ADO代码
    }
    catch (_com_error& e)
    {
    CString strMsg;
    strMsg.Format(_T("错误描述:%s\n错误消息%s"), 
    (LPCTSTR)e.Description(),
    (LPCTSTR)e.ErrorMessage());
    AfxMessageBox(strMsg);
    }
      

  3.   

    ADO捕捉异常  捕捉的异常如图  应如何解决?
      

  4.   

    str1.Format(_T("use master restore database HCCP from Disk='&s' with move 'BL_DataBase_Data' to 'c:\\\\HCCP.mdf',                 MOVE  'BL_DataBase_log'  TO  'c:\\\\HCCP.ldf'"),filename);试试