如何在Windows 7 64bit中以编程方式压缩Access数据库 [英] How can I compact an Access database programatically in Windows 7 64bit

查看:200
本文介绍了如何在Windows 7 64bit中以编程方式压缩Access数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我计划将大型VC6应用程序从32位转换为64位.我将使用VS2010进行编程,并将从头开始,然后复制/粘贴数百个类和资源.

该应用程序使用ODBC CDatabase和CRecordset,我无法更改它.

在我的32位版本中,我必须使用ADO来压缩和修复受密码保护的数据库受密码保护的数据库,因为这无法在纯ODBC中完成.

但是,我已经阅读到Windows 7 64bit 不支持OLEDB.4.0.
因此,如何在MFC中以编程方式压缩和修复受密码保护的访问数据库?我已经搜索了很多天,但是没有找到答案.我不想使用WOW64.我希望我的程序是纯64位的.
我们将不胜感激.

I plan to convert a large VC6 application from 32bit to 64bit. I will be programming with VS2010 and will start from scratch and then copy/paste the hundreds of classes and resources.

The application uses ODBC CDatabase and CRecordset, and I can''t change this.

In my 32bit version, I have to use ADO to compact and repair my password protected database because this can''t be done in pure ODBC.

However, I have read that OLEDB.4.0 is not supported in Windows 7 64bit.
So, how can I programatically compact and repair a password protected access database in MFC? I have googled for many days, but have not found an answer. I don''t want to use WOW64. I want my program to be pure 64bit.
Any help would be most appreciated.

推荐答案

您不能使用64位代码来完成它.没有用于Jet(访问)数据库的64位驱动程序.您别无选择,只能使用您在网络上发现的相同的32位代码来执行此操作.
You cannot do it in 64-bit code. There are no 64-bit drivers for a Jet (Access) database. You don''t have a choice but to use the same 32-bit code as you find plastered all over the web to do this.


这篇关于如何在Windows 7 64bit中以编程方式压缩Access数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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