Chapter 21. Manually Defining COM Types in Source Code

In This Chapter

Using SDK Tools for Support

Manually Defining COM Interfaces

Manually Defining Coclass Interfaces and Event Types

Manually Defining COM Structures

Manually Defining COM Enums

Manually Defining COM Classes

Avoiding the Balloon Effect

In an ideal world, a .NET definition of every COM interface, class, enum, and so on, would exist somewhere in a Primary Interop Assembly that’s readily available. Furthermore, every definition would be completely usable in every .NET language, no matter how non-standard it may be. Of course, this is not the world we live in, but there are a variety of things we can do when a desired Primary Interop Assembly does not exist.

We ...

Get .NET and COM: The Complete Interoperability Guide 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.