对 COM 对象进行 IPC 调用?

发布于 2024-09-27 13:29:58 字数 352 浏览 0 评论 0原文

我有一个使用 C# 中的 ESRI ArcGIS Engine 开发的基于插件的应用程序。由于 32 位操作系统 (WindowsXP) 的 2/3G 虚拟内存限制,我必须将其重写为进程外插件架构。在旧的源代码中,几乎每个插件都直接调用MapControl对象(ESRI ArcGIS Engine软件中的COM对象)。将 MapControl 及其相关对象包装为远程对象时需要做太多工作。

问题是,有没有办法对 MapControl COM 对象进行进程间调用,这样我就不用费心做很多包装了?

在C#开发中,.Net对象和COM对象之间有CCW(COM Callable Wrapper)进行中间通信的桥梁。它是否可以拦截 CCW 对象并使其成为远程对象?

I have a plugin based application developing with ESRI ArcGIS Engine in C#.I have to rewrite it to a out of process plugin architecture because of 2/3G virtual memory limitation of 32-bit operating system(WindowsXP). In old source code almost every plugin call MapControl object(a COM object in ESRI ArcGIS Engine software) directly. There are too much work while wrapper MapControl and its related objects as remoting objects.

The question is, is there a way to make inter-process call to MapControl COM object so i dont bother to do a lot of wrappers?

While developing in C#, there are bridges called CCW(COM Callable Wrapper) between .Net object and COM object to intermediate comminications. Does it work intercepting CCW object and make it a remoting object?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟凡古楼 2024-10-04 13:29:58

不,我认为你不能按照你建议的方式拦截《特定常规武器公约》。

不能将 COM 组件配置为具有 DLL 代理的本地服务器吗?

No, I don't think you can intercept the CCW the way you suggest.

Can't you configure the COM component as a local server with a DLL surrogate?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文