本帖最后由 VisualEleven 于 2015-03-09 14:32:55 编辑

解决方案 »

  1.   

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

  2.   

    } catch (_com_error *e)
    ==>
    } catch (_com_error &e)
      

  3.   

    对的  在你整个的代码上加上 try catch  看看什么错误