Chapter 12. Customizing COM’s View of .NET Components

In This Chapter

Customizing Data Types

Customizing Structure Layout

Exposing Class Interfaces

Using Visual Basic .NET’s ComClassAttribute

Making APIs Invisible to COM

Customizing Registration

Providing Your Own GUIDs

Providing Your Own DISPIDs

Controlling Interface Derivation

Returning a Specific HRESULT

Disabling Type Library Marshaling of .NET Interfaces

Creating Multi-Cultured Methods

Using Optional Parameters in Any Language

Exposing .NET Objects as COM+ Objects

The Common Language Runtime (CLR) provides reasonable default behavior when exposing .NET components to COM. This default behavior is safe in the face of versioning, and almost always matches what ...

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.