使用32位.NET DLL是64位.NET项目
我有 32 位 .NET DLL 程序集,我需要在 64 位 .NET 项目中使用它。
怎么可能呢?我无法重新编译 DLL,也没有源代码。
除了PE可执行文件头之外,32位.NET DLL和64位.NET DLL之间有什么区别?
也许那个 DLL 可以很容易地修改?
I have 32-bit .NET DLL assembly and I need to use it in 64-bit .NET project.
How it is possible? I can't recompile DLL and I haven't source code.
What is the difference between 32-bit .NET DLL and 64-bit .NET DLL except of PE executable file header?
Maybe that DLL can be modified easily?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您尝试过 .NET 反编译器吗?它们非常有效:http://reflector.red-gate.com/download.aspx 让它工作的机会将取决于为什么 DLL 首先被标记为 32 位 - 大概有一个很好的理由。
您当然不能直接从 64 位 .NET 进程使用 32 位 .NET DLL。您可以编写一个 32 位应用程序来加载 DLL 并响应来自单独 64 位进程的请求。
Have you tried a .NET decompiler? They can be very effective: http://reflector.red-gate.com/download.aspx The chances of getting this to work will depend on why the DLL is marked as 32-bit in the first place - presumably there is a good reason for it.
You certainly cannot use a 32-bit .NET DLL directly from a 64-bit .NET process. You could write a 32-bit application that loads the DLL and responds to requests from the separate 64-bit process.