Chapter Seven. Advanced .NET to COM Interop

In the last chapter, you learned the basic essentials of COM Interop. You learned how to use a simple COM object from a managed code (.NET) client and how to use a simple managed code (.NET) component from an unmanaged client. However, everything that you learned in Chapter 6 is really just the tip of the iceberg. I did not discuss a number of issues in that chapter that make using COM Interop more complicated than you have seen so far. In this chapter, I concentrate on advanced aspects of .NET to COM Interop, that is, using COM components from a managed code client. Some of the issues that I discuss in this chapter are object life cycle differences between reference counting and garbage collection, ...

Get .NET and COM Interoperability Handbook, The 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.