Communicating with COM from .NET

One of the most likely interop scenarios is communicating from .NET to existing COM components. This can allow preservation of existing infrastructure and reduction in overall development cost.

COM components may be called via either early or late binding. Using early binding, legacy COM components can be made to appear as managed objects in the .NET environment. This is accomplished by a utility that reads an existing type library and creates a proxy for the .NET component to interact with.

Early-bound components are those that are bound at compile time. This promotes type safety and improves a program's overall performance. However, sometimes a type library may not be available. In these cases it's necessary ...

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.