如何在x64应用程序中使用x86 dll? [英] how can x86 dll in x64 application ?

查看:1120
本文介绍了如何在x64应用程序中使用x86 dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能x86 dll在x64应用程序中使用它?

is it possible x86 dll use it in x64 application ?

推荐答案

一般来说,使用意义上,原则上你可以使用它们,但绝不直接,没有像往常那样在一个进程中加载​​。



如果人们有两段没有源的代码,则针对不同的指令集架构,他们将一个或多个服务包装在一些服务中,并通过IPC组织沟通。换句话说,由于没有可执行文件(EXE,DLL,任何东西)可以在同一个进程中工作,因此您应该有多个单独的进程,并且当进程被隔离时,它们需要通过IPC进行通信。请参阅:

http://en.wikipedia.org/wiki/Inter-process_communication [ ^ ],

http://en.wikipedia.org/wiki/Instruction_set [ ^ ]。



另外,我怕你缺少一个重点:至少有两种不同的64位指令集架构:x86-64和Itanium(IE64);它们是不兼容的,但都可以运行32位x86应用程序:

http://en.wikipedia .org / wiki / X86-64 [ ^ ],

http://en.wikipedia.org/wiki/Itanium [< a href =http://en.wikipedia.org/wiki/Itaniumtarget =_ blanktitle =New Window> ^ ]。



-SA
In general sense of "use", in principle, you can use them, but never directly, no loaded in one process as you usually do.

If people have two pieces of code without the source, targeted to different instruction-set architectures, they wrap one or more of them in some service and organize communication through IPC. In other words, as no executables (EXE, DLL, anything) can work in the same process, you should have more than one separate process, and, as processes are isolated, they need to communicate via IPC. Please see:
http://en.wikipedia.org/wiki/Inter-process_communication[^],
http://en.wikipedia.org/wiki/Instruction_set[^].

Also, I'm afraid you are missing one important point: there are at least two different 64-bit instruction-set architectures: x86-64 and Itanium (IE64); they are incompatible but both can run 32-bit x86 applications:
http://en.wikipedia.org/wiki/X86-64[^],
http://en.wikipedia.org/wiki/Itanium[^].

—SA


这篇关于如何在x64应用程序中使用x86 dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆