我写了一个的MFC的小数据库程序,编译连接都通过了,就是运行时弹出一个错误。用releace弹出Runtime Error  abnormal program termination这个错误,用debug弹出The application has requested the Runtime to terminate it in an unusual way.Please contact the application's support team for more information

解决方案 »

  1.   

    我这是第一次编写数据库程序,不知道到底我的连接是对是错啊,我的连接字串是用udl获取的
      

  2.   

    com环境初始化,CoInitialize(NULL)
      

  3.   

    _variant_t vFenyuan;
    vFenyuan=m_pRecordset->GetCollect("FENYUAN");//得到记录的"所属分院"字段的值
    调试走到这里就走不下去啦错误是:
    unhandled exception in mytext.exe 0xC0000005:M Access Violation
      

  4.   

    有那字串啊,我用的ACCESS数据库,登录名没有限制的