在C#中的64位应用程序的32位的DLL

编程入门 行业动态 更新时间:2024-10-24 20:17:42
本文介绍了在C#中的64位应用程序的32位的DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好 我想在C#中64位应用程序,我wan't它使用C ++ Builder中(32位)创建的DLL。但是,当我尝试加载DLL的应用程序崩溃。当内置的32bit它的工作原理。有没有一种方法来使用这个DLL的64位应用程序?

Hello I want to create a 64bit application in c# and I wan't to use in it a dll created in C++ builder (32bit). But when I try to load the dll the application crashes. When built in 32bit it works. Is there a way to use this dll in a 64bit app?

推荐答案

没有,这是不可能的。 Windows中的过程可以是32位或64位,它只能加载DLL的哪些比赛。任何试图加载DLL不匹配将失败,并产生错误。

No this is not possible. A process in Windows is either 32 or 64 bit and it can only load DLL's which match. Any attempt to load a DLL which does not match will fail and produce an error.

如果你需要c您需要使用多个进程,以配合32位和64位$ C $。在这种情况下,虽然我只想让应用32位或DLL的64位

If you need to match 32 and 64 bit code you need to use multiple processes. In this case though I would just make the application 32 bit or the DLL 64 bit

更多推荐

在C#中的64位应用程序的32位的DLL

本文发布于:2023-11-12 07:36:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580893.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   DLL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!