Summary

Many COM issues that you are likely to encounter were touched on in this chapter. Issues such as consuming COM within a Managed Client, exposing Managed code as classic COM, COM threading models, and the notion that COM supports only a subset of what can be accomplished with C# and the CLR. It is likely that classic COM will exist for years to come, thus requiring most developers to learn the basics of COM Interop with Managed code. For future projects, I would suggest moving away from the restrictions of classic COM. Focus instead on maximizing your return with the facilities provided by C# and language interop for component-based applications.

C# affords a very powerful language for component construction, and .NET facilitates language ...

Get C# and the .NET Framework: The C++ Perspective 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.