Interop 和 RCW(运行时可调用包装器)有什么区别?

发布于 2024-07-13 06:22:29 字数 55 浏览 4 评论 0原文

Interop 和 RCW(运行时可调用包装器)有什么区别?

这只是术语吗?

What is the difference between an Interop and a RCW (Runtime Callable Wrapper)?

Is it just terminology?

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

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

发布评论

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

评论(2

时光礼记 2024-07-20 06:22:29

Interop 用于调用原始 DLL 导出。

RCW(运行时可调用包装器)用于将 COM 对象公开给 .NET 类 - 即,使 COM 对象可由 .NET 代码调用。 RCW 是一个 .NET 代理,它使用互操作来连接 COM 对象。

您可以直接对 COM 使用 Interop,但这只是一种困难的方式。

Interop is for calling raw DLL exports.

RCW (Runtime Callable Wrapper) is used to expose COM objects to .NET classes - ie., to make COM objects callable by .NET code. The RCW is a .NET proxy that uses interop to interface to the COM object.

You could use Interop directly to COM, but that's just doing it the hard way.

喜爱皱眉﹌ 2024-07-20 06:22:29

它们是相互联系的。 Interop 是在 .NET 中使用本机 dll 的总称。 RCW 是在 .NET 中使用特定组件/类/对象所需的包装器。

They are connected with each other. Interop is the overall term for using native dll's within .NET. A RCW is a wrapper which is needed to use one specific component/class/object in .NET.

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