在64位应用程序中加载32位DLL库 [英] Load 32bit DLL library in 64bit application

查看:889
本文介绍了在64位应用程序中加载32位DLL库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法加载一个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

Sorry, but 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使用64位应用程序的32位代码。以下是一篇文章,说明过程 http://blog.mattmags.com/2007/06/30/accessing-32-bit-dlls-from-64-bit-code/ 它不好玩。

Microsoft recommends that you use interprocess COM to use 32 bit code with a 64 bit application. Here's an article explaining the process http://blog.mattmags.com/2007/06/30/accessing-32-bit-dlls-from-64-bit-code/ Its not fun.

这篇关于在64位应用程序中加载32位DLL库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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