我可以从 32 位版本的 Excel VBA 调用 64 位 DLL 吗? [英] Can I call a 64bit DLL from a 32bit version of Excel VBA?
问题描述
我遇到了 32 位安装 Excel 的异常情况,我调用的一些库已编译为 64 位库,但是当我尝试调用这些函数时,出现错误找不到 xyz.dll".>
我知道你不能从 64 位进程调用 32 位进程(很容易),但反之亦然呢?
不,你不能那样做.64 位 dll 无法加载到 32 位进程中.
(顺便说一下,你也不能反过来,但是你可以从 64 位 进程 调用 32 位 进程 是正确的,反之亦然-相反).
I'm in the unusual situation of having a 32bit install of Excel and some libraries I call have been compiled as 64bit libraries but when I try to call the functions I get an error "Cannot find xyz.dll".
I know you can't call 32bit processes (easily) from 64bit ones, but what about vice versa?
No you can't do that. A 64 bit dll cannot be loaded into a 32 bit process.
(You can't do the converse either by the way, but you are correct that you can call a 32 bit process from a 64 bit process, and vice-versa).
这篇关于我可以从 32 位版本的 Excel VBA 调用 64 位 DLL 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!