是否可以从32位应用程序访问64位dll? [英] Is it possible to access a 64-bit dll from a 32-bit application?

查看:488
本文介绍了是否可以从32位应用程序访问64位dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个类似于 Taskbar Shuffle 的Delphi应用程序,其中包含一个hook dll。 / p>

编辑:此钩子DLL通过发送Windows消息与主应用程序通信。



我想添加对XP和Vista x64的支持,我的初始想法是将dll转换为64位(使用FreePascal进行编译),但现在应用程序为32位(Delphi)。



32位应用程序是否可以访问64位dll?



EDIT2 :I通过LoadLibrary来加载dll,所以我想我被卡住了,因为32位进程将无法加载一个64位的dll,根据我在Lars Truijens指出的链接上的一个答案

解决方案

否。您必须编译两个版本:64位和32位。


I have a Delphi application similar to Taskbar Shuffle that includes a hook dll.

EDIT: This hook DLL communicates with the main app by sending windows messages.

I want to add support to XP and Vista x64 and my initial idea was to convert the dll to 64-bit (compiling it with FreePascal) but keep the application 32-bit for now (Delphi).

Is it possible for a 32-bit application to access a 64-bit dll?

EDIT2: I'm loading the dll via LoadLibrary so I guess I'm stuck since a 32-bit process won't be able to load a 64-bit dll, according with what I read on the link pointed by Lars Truijens on one of the answers below.

解决方案

No. You'll have to compile two versions: 64-bit and 32-bit.

这篇关于是否可以从32位应用程序访问64位dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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