4

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

Is it just terminology?

hippietrail
  • 15,848
  • 18
  • 99
  • 158
Mark Nold
  • 5,638
  • 7
  • 31
  • 33

2 Answers2

4

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.

Michael Burr
  • 333,147
  • 50
  • 533
  • 760
2

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.

Martin Moser
  • 6,219
  • 1
  • 27
  • 41