且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在64位机器上运行32位DLL

更新时间:2021-07-29 01:48:31

它与O / S无关,而是与之相关的一切app你正在加载.DLL。



你不能在同一个进程中混合使用32位和64位代码。因此,如果主应用程序是64位应用程序或编译为AnyCPU并在64位O / S上运行,则它不能使用仅32位的.DLL。



要么提供64位版本的.DLL,要么重新编译主应用程序(如果可能的话),成为32位应用程序。



是的,您可以在64位操作系统上运行32位应用程序。
It has nothing to do with the O/S but everything to do with the app you're loading the .DLL with.

You can NOT mix 32- and 64-bit code in the same process. So, if the main app is a 64-bit app or is compiled "AnyCPU" and running on a 64-bit O/S, it can NOT use 32-bit-only .DLL's.

Either supply a 64-bit version of your .DLL or recompile the main app, if at all possible, to be a 32-bit only app.

Yes, you can run 32-bit apps on a 64-bit O/S.


您可以设置iis。



允许应用程序池允许32位。
you can setting iis。

Allow application pool to allow 32 bit.