当前位置:编程学习 > C#/ASP.NET >>

vc数据库 run time erro

一个用VC写的数据库客户端程序,用来读写sql server2005数据库,
先用6.0编译,后来改动过后用vs2003编译过,
在开发环境下运行没问题
在开发环境下运行没问题

移植到其他电脑后跳出错误:
runtime error 
this application has requested the runtime to terminate it in an anusucll way please contact the application's ... 


请问应该怎么解决?谢谢
--------------------编程问答-------------------- 当我们用Vc编程时,有时总会提示: this application has requested the runtime to terminate it in an anusucll way please contact the application's ...

现终于发现解决这个问题的方法,特拿出来跟大家共享:
方法:就是在m_pConnection->ConnectionString="DSN=student;DBQ=E:\database resource\student.mdb;DriverId=25;FIL=MS Access;MaxBufferSize=2048;UID=admin;";
出现在连接字符串中,然后只需改为:
m_pConnection->ConnectionString="DSN=student;DBQ=E:\\database resource\\student.mdb;DriverId=25;FIL=MS Access;MaxBufferSize=2048;UID=admin;";就可以了,

网上找到的,试试 --------------------编程问答-------------------- 不是这个问题 谢谢了 --------------------编程问答-------------------- 是否使用了ADO,检查一下ADO的版本 --------------------编程问答-------------------- 用了msado15.dll --------------------编程问答-------------------- 已解决
连数据库语句前加上就行了
CoInitialize(NULL)
就行了;
--------------------编程问答--------------------
补充:.NET技术 ,  VC.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,