未注册 Jet 4.0 在 Windows 7 64 位上的问题 [英] Problem with unregistered Jet 4.0 on Windows 7 64 bit
问题描述
我正在尝试运行一个在硬盘驱动器上运行的程序,该程序使用 Microsoft Jet OleDB 打开 MS Access 数据库并从中获取信息.问题是当我尝试运行程序时 Visual Studio 给了我这个错误:
I am trying to run a program, running on the hard drive, that uses Microsoft Jet OleDB to open and get info from an MS Access database. The problem is that when I try to run the program Visual Studio gives me this error:
'Microsoft.Jet.OLEDB.4.0' 提供程序未在本地计算机上注册."
"The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine."
我尝试构建程序以针对x86"而不是Any CPU",但这不起作用.我还查看了 WindowsSysWOW64 文件夹(64 位相当于 32 位机器上的 WindowsSystem32 文件夹).msjet40.dll 和 msjetoledb40.dll 文件都在这个文件夹中,所以我知道这些文件存在.我还尝试在命令提示符下转到此文件夹并为两个文件键入regsvr32".我看到这个方法用于在另一个网站上注册 DLL.
I tried building the program to target "x86" instead of "Any CPU", but that did not work. I also looked in the WindowsSysWOW64 folder (the 64 bit equivalent to WindowsSystem32 folder on a 32 bit machine). Both msjet40.dll and msjetoledb40.dll files are in this folder, so I know the files exist. I also tried going to this folder in the command prompt and typing "regsvr32 " for both files. I saw this method used to register DLLs on another website.
我的问题是如何让 Jet 4.0 实用程序在我的 Windows 7 64 位机器上运行?
My question is how do I get the Jet 4.0 utilities to work on my Windows 7 64 bit machine?
推荐答案
其实 SysWOW64 目录就是 32 位文件.如果您在 System32 中有 msjet40.dll 和 msjetoledb40.dll,那么它们将是 64 位的.据我所知,周围没有 64 位版本的 Jet.我可能误会了,因为即将推出新的 64 位 Office.
Actually, the SysWOW64 directory is the 32 bit files. If you had a msjet40.dll and msjetoledb40.dll in System32, those would be 64 bit. As far as I am aware, there are no 64 bit versions of Jet around. I could be mistaken as there is a new 64 bit Office coming.
这篇关于未注册 Jet 4.0 在 Windows 7 64 位上的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!