是否有可能从32位应用程序访问64位的DLL? [英] Is it possible to access a 64-bit dll from a 32-bit application?
问题描述
我有类似于Delphi应用程序任务栏洗牌,其中包括一个钩子DLL。
I have a Delphi application similar to Taskbar Shuffle that includes a hook dll.
修改:这个钩子DLL的主要的应用程序通过发送Windows消息通信
EDIT: This hook DLL communicates with the main app by sending windows messages.
我要添加支持XP和Vista x64和我最初的想法是对的dll转换为64位(与FreePascal的编译它),但保持应用程序的32位现在(德尔福)。
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).
是否有可能为32位应用程序来访问64位的DLL?
Is it possible for a 32-bit application to access a 64-bit dll?
EDIT2 :我通过调用LoadLibrary加载DLL,所以我想我坚持,因为32位进程将无法加载64位DLL,根据与我阅读指出通过拉尔斯Truijens下面的答案中的一个链接。
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.
推荐答案
没有。你必须编译两个版本:64位和32位
No. You'll have to compile two versions: 64-bit and 32-bit.
这篇关于是否有可能从32位应用程序访问64位的DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!