在 64 位应用程序中加载 32 位 DLL 库 [英] Load 32bit DLL library in 64bit application
问题描述
有没有办法加载 32 位 DLL 库(与 LoadLibrary 的用法相同)我想将该函数与 GetProcAddress 一起使用.
Is there a way to load a 32bit DLL library (something with the same usage as LoadLibrary) I would like to use that function along with GetProcAddress.
我看过 WOW,但它似乎没有提供该功能.该功能应该存在,因为像 DependencyWalker 这样的工具能够读取 32 位 dll 的符号,即使它是 64 位.
I looked at WOW, but it does not seem to offer the functionality. The functionality should exist, since tools like DependencyWalker are able to read the symbols of a 32bit dll even though its 64bits.
谢谢
推荐答案
当您将 dll 作为数据文件加载时,您只能将 32 位 DLL 加载到 64 位进程中.你不能执行代码.(http://support.microsoft.com/kb/282423)
You can only load a 32bit DLL into a 64 bit process when you are loading the dll as a datafile. You can't execute the code. (http://support.microsoft.com/kb/282423)
Microsoft 建议您使用进程间 COM 来将 32 位代码与 64 位应用程序一起使用.这是一篇解释该过程的文章.
Microsoft recommends that you use interprocess COM to use 32 bit code with a 64 bit application. Here's an article explaining the process.
这篇关于在 64 位应用程序中加载 32 位 DLL 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!