是否可以在 Windows 上将 32 位 ODBC 驱动程序与 64 位应用程序一起使用?

发布于 2024-07-26 01:49:12 字数 167 浏览 2 评论 0原文

我有一个 64 位应用程序和一个仅 32 位版本的 ODBC 驱动程序。 有没有办法让应用程序通过驱动程序连接到数据源?

我意识到简短的答案是否定的,与 64 位应用程序无法加载 32 位 dll 有关,但我正在寻找一个稍微更长、更积极的答案。

此时重写驱动程序不是一个选择。

I have a 64-bit application and an ODBC-driver which only comes in 32-bit-flavour. Is there any way to have the application connect to the datasource through the driver?

I realize the short answer is NO, related to 64-bit applications not being able to load a 32-bit dll, but I am looking for a slightly longer and more positive answer.

Re-writing the driver is not an option at this point.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤檠 2024-08-02 01:49:12

在 32 位进程中托管 ODBC 驱动程序,并在现在的 64 位应用程序和进程之间进行通信。 选择您的选择的IPC来执行此操作(我可能会选择套接字,没有特殊原因)。

这里有一篇文章讨论了这种方法以及一些影响。

Host the ODBC-driver in a 32-bit process, and communicate between your now 64-bit application and the process. Pick your IPC of choice for doing so (I'd probably go with sockets, for no particular reason).

Here's an article that discusses this approach, and some of the implications.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文