O'Reilly logo

.NET and COM: The Complete Interoperability Guide by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Exposing .NET Events to COM Clients

In This Chapter

Exposing Events Without Using Extra CLR Support

Exposing Events Using Extra CLR Support

Example: Handling a .NET Windows Form’s Events from COM

Events are a popular way to expose callback functionality in .NET, and are used extensively in the .NET Framework. That’s why it’s great that the type library importer exposes COM classes that use COM’s connection point protocol as .NET classes with .NET events, as explained in Chapter 5, “Responding to COM Events.” Unfortunately, as described in Chapter 10, “Advanced Topics for Using .NET Components,” the reverse direction (exposing .NET events via connection points) isn’t automatically handled by COM Interoperability. A .NET instance ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required