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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.