是否可以在 Windows 上将 32 位 ODBC 驱动程序与 64 位应用程序一起使用?
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 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.