简体   繁体   中英

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

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

Is it just terminology?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM