从32位进程调用LoadLibrary调用在64位DLL [英] Calling LoadLibrary on a 64-bit dll from a 32-bit process

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

问题描述

予有需要动态加载的64位的dll它检测到操作系统是64位时,32位的exe。通过调用LoadLibrary这可能吗?如果没有,有没有别的办法来完成同样的目标?

I have a 32-bit exe that needs to dynamically load a 64-bit dll when it detects that the operating system is 64-bit. Is this possible through LoadLibrary? If not, is there another way to accomplish the same goal?

推荐答案

由于pviously提到的$ P $,32位code无法加载64位code在同一个进程。你必须将其加载到一个不同的进程(的CreateProcess()?),并利用IPC进行协调。

As previously mentioned, 32-bit code cannot load 64-bit code in the same process. You'll have to load it into a different process (CreateProcess() ?) and use IPC to coordinate.

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

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