Summary

The .NET technology can definitely interoperate with the COM legacy architecture and components. In the first part of the chapter, you saw how to import COM components into managed applications, understanding how Visual Studio generates .NET wrappers to interact with COM. Next, you got information on how to create and expose .NET libraries to COM, utilizing the Visual Studio instrumentation and applying the ComVisible attribute to classes and class members to grant visibility granularity. In the last part of the chapter, you saw how to call and run unmanaged code, with particular regard to Platform Invokes and types conversions for working directly against the Windows operating system.

Get Visual Basic 2015 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.