对 COM 对象进行 IPC 调用?
我有一个使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,我认为你不能按照你建议的方式拦截《特定常规武器公约》。
不能将 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?