简体   繁体   English

在x86应用程序中使用x64 dll

[英]Using x64 dll in x86 application

I have a DLL that needs to operate large ammounts of memory and must be x64 to do that, but the application, which calls it is x86 and can not be converted to x64. 我有一个需要操作大量内存的DLL,并且必须使用x64才能执行此操作,但是调用它的应用程序是x86,无法转换为x64。 COM is already used for interaction between application and the dll. COM已经用于应用程序和dll之间的交互。

Is it possible to use surrogate process for that purpose? 是否有可能为此目的使用代理过程?

I know that it is possible to do such a thing in the opposite case (run x86 COM library in x64 application), will there be any difference? 我知道在相反的情况下可以做这样的事情(在x64应用程序中运行x86 COM库),会有什么区别吗?

Yea, you can, and there should be no differences as COM handles everything for you. 是的,你可以,并且应该没有差异因为COM为你处理一切。

On 64-bit Windows, an out-of-process 32-bit COM server can communicate with a 64-bit client, and an out-of-process 64-bit COM server can communicate with a 32-bit client. 在64位Windows上,进程外32位COM服务器可以与64位客户端通信,进程外64位COM服务器可以与32位客户端通信。

http://msdn.microsoft.com/en-us/library/aa384231(VS.85).aspx http://msdn.microsoft.com/en-us/library/aa384231(VS.85).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM