开发者

Using x64 dll in x86 application

开发者 https://www.devze.com 2023-01-15 00:16 出处:网络
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. COM is already used for interaction

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. COM is already used for interaction between application and the dll.

I开发者_运维技巧s 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?


Yea, you can, and there should be no differences as COM handles everything for you.

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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消