Unhandled exception in tstcon32.exe (kernel32.dll) :0xe06d7363try 
{
m_pRecordset-> AddNew(); 
m_pRecordset-> PutCollect( "ID",   _variant_t(message));
m_pRecordset-> PutCollect( "Date",   _variant_t(strDate)); 
m_pRecordset-> Update(); 
m_AdoConn.ExitConnect();
} catch(_com_error *e)
{
AfxMessageBox(e->ErrorMessage());
}在m_pRecordset-> Update(); 报错
Unhandled exception in tstcon32.exe (kernel32.dll) :0xe06d7363vc  sql2000  AddNew();  0xe06d7363

解决方案 »

  1.   

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

  2.   

     error C2228: left of '.Description' must have class/struct/union type
      

  3.   

    在m_pRecordset-> Update(); 直接跳出对话框报错
      

  4.   

    7C812AFB   pop         esi
      

  5.   

    ID 在你数据库里是 INT 类型吧?你那个 message 是不是个 'asdf'这种字符串?
      

  6.   

    用我给的异常捕获代码报什么错。 捕获不到,在在m_pRecordset-> Update(); 弹出对话框,运行不了。 
      

  7.   

    ID 在你数据库里是 INT 类型吧?你那个 message 是不是个 'asdf'这种字符串? 
    是的