使用32位.NET DLL是64位.NET项目

发布于 2024-11-10 01:05:14 字数 164 浏览 5 评论 0原文

我有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷路的信 2024-11-17 01:05:14

您尝试过 .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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文