ADO Connect在Win32中工作,但在x64中不工作 [英] ADO connect work in win32 but not in x64

查看:113
本文介绍了ADO Connect在Win32中工作,但在x64中不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用DAO读取C ++中的数据库.
当我们在32位(在Win7 64位计算机上)上编译并运行应用程序时,它运行良好.
当我们在x64中编译它时,连接失败:
连接字符串很简单:

We use DAO to read database in C++.
When we compile and run the application in 32 bit (on a Win7 64 bit machine) it works well.
When we compile and it in x64, the connect fail:
The connection string is simple:

"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\db.accdb"


该数据库保存在一个简单的MS Access 2007文件中.
我们看到很多人说解决方案是使用32位,但这不是我们的选择...
有人解决过这个问题吗?

谢谢!


the database in a simple MS Access 2007 file.
We saw a lot of people saying that the solution is to use 32 bit, but that is not an option for us...
Did anybody solve this problem?

Thanks!

推荐答案

此驱动程序有用吗?

http://www.microsoft.com/download/zh-CN/details.aspx? displaylang = en& id = 13255 [ ^ ]
is this driver any use?

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=13255[^]


这篇关于ADO Connect在Win32中工作,但在x64中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆