COM 客户端/服务器跨 64/32 位进程 [英] COM Client/Server cross 64/32 bit processes

查看:31
本文介绍了COM 客户端/服务器跨 64/32 位进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 64 位机器上:

64 位应用程序能否调用在 32 位进程中运行的 COM 服务器(out proc)?

Can a 64-bit application call a COM server (out proc) which is running in 32-bit process?

反之亦然呢?(32 位应用调用 64 位 COM 输出 proc 服务器)

What about vice versa? (32 bit app calling 64-bit COM out proc server)

谢谢!

推荐答案

out-proc COM 的全部意义在于两个进程通过 RPC(通常是 LRPC)进行交互,所以每个进程的位数并不重要他们有.

The whole point of out-proc COM is that the two processes interact via RPC (usually LRPC), so it doesn't matter at all which bitness each of them has.

我们使用 COM+ 代理来强制 32 位进程内组件进入一个单独的进程,其唯一目的是从 64 位客户端多次使用它们 - 带有用于编组的所有必要的东西,它可以毫不费力地工作.

We used COM+ surrogate for forcing 32-bit in-proc components into a separate process for the only purpose of consuming them from 64-bit clients many times - with all necessary stuff for marshalling present it works without any effort.

这篇关于COM 客户端/服务器跨 64/32 位进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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