"找不到提供者.它可能没有正确安装"在 64 位上构建时 [英] "Provider cannot be found. It may not be properly installed" when built on 64 bit

查看:36
本文介绍了"找不到提供者.它可能没有正确安装"在 64 位上构建时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 ADO 连接到 EXCEL.在我的机器上安装了 32 位办公室.以下代码在使用 32 位构建时运行良好:

I'm using ADO to connect to EXCEL. On my machine office 32 bit is installed. The following code runs fine when built with 32 bit:

_ConnectionPtr conn;
conn->Open(connStr, "", "", NULL);

连接字符串包括:

Provider=Microsoft.ACE.OLEDB.12.0

当为 64 位编译时,我得到:找不到提供程序.它可能没有正确安装."(hr=-2146824582).64位有兼容性问题吗?我应该安装 64 位 Office 吗?如果我这样做,我的代码在为 32 位构建时能正常工作吗?

When compiled for 64 bit I get: "Provider cannot be found. It may not be properly installed." (hr=-2146824582). Is there a compatibility issue with 64 bit? Should I install 64 bit office? If I do, will my code work when built for 32 bit?

谢谢.

推荐答案

解决方案:Microsoft Access Database Engine 2010 Redistributable".

Solution: "Microsoft Access Database Engine 2010 Redistributable".

http://www 下载AccessDatabaseEngine_X64.exe".microsoft.com/en-gb/download/details.aspx?id=13255 并运行AccessDatabaseEngine_X64.exe/passive".

Download "AccessDatabaseEngine_X64.exe" from http://www.microsoft.com/en-gb/download/details.aspx?id=13255 and run "AccessDatabaseEngine_X64.exe /passive".

这篇关于"找不到提供者.它可能没有正确安装"在 64 位上构建时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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