使用32位组件传递64位exe或DLL

问题描述:

我有一个关于使用32位组件传递64位exe或dll的查询。



有没有办法去dll或我们必须写一个包装器或直接我们可以更改注册表设置。



我尝试过:



与32位组件通信64位exe或dll

I have a query regarding communicating 64 bit exe or dll with 32 bit components.

is there any way to dll or we have to write a wrapper or directly we can have acces changing the registry settings.

What I have tried:

communicating 64 bit exe or dll with 32 bit components

64位EXE无法调用32位程序集。

见这里: 64位app调用32位dll? [ ^ ]获取建议。



就注册表而言,访问受限于64位和32位程序集的相同方式 - 并且可能更严格而不是更少。除非您需要更改其他应用程序的注册表设置,否则最好完全忽略它,并使用您自己的本地存储。如果不出意外,本地存储将不需要进程提升!
A 64 bit EXE can't call 32 bit assemblies.
See here: 64 bit app calling 32 bit dll?[^] for suggestions.

And as far as the registry goes, access is restricted in the same way to both 64 and 32 bit assemblies - and is likely to be more strict rather than less. Unless you need to change registry settings for a different application, you would be better off ignore it completely, and using your own local storage instead. If nothing else, local storage won't require process elevation!