如何在64位机器上运行32位DLL [英] How can I run 32 bit DLL in 64 bit machine
本文介绍了如何在64位机器上运行32位DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前我在64位操作系统中运行我的代码,当我从32位dll中提取数据时,它无效。当在32位操作系统上完成同样的操作时,它工作得非常好。
需要帮助
thanx
问候
Sushant
我尝试过:
i尝试在x86中创建exe,甚至在x64中都没用。
currently i am running my code in 64 bit OS in which when i extract data from 32 bit dll its not working. when the same is done on 32 bit OS it working perfectly fine.
need help
thanx
Regards
Sushant
What I have tried:
i tried creating exe in x86 and even in x64 both are not useful.
推荐答案
它与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.
这篇关于如何在64位机器上运行32位DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文