COM to .NET

Exposing a .NET managed object as a COM object for consumption by COM clients follows a similar process as exposing a COM object for consumption by managed clients. This next section will show you the ins and outs of getting started with .NET and COM Interop by exposing a .NET managed component as a COM component.

The COM Callable Wrapper

Just as .NET components need a runtime callable wrapper in order to communicate across process boundaries with COM objects, COM objects need a COM callable wrapper (CCW) in order to communicate with .NET components. Unable to communicate directly with managed code, the CCW acts as a proxy that both provides access to the exposed component and handles the default marshalling behavior (refer to Table ...

Get Microsoft® Visual C#® .NET 2003 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.