Chapter 16. COM Design Guidelines for Components Used by .NET Clients

In This Chapter

General Guidelines

Using Array Parameters

Issues with VARIANT Parameters

Reporting Errors

Adjusting Certain COM-Specific Idioms

Managing Limited Resources

Threading and Apartment Guidelines

Providing Self-Describing Type Information

Naming Guidelines

Performance Considerations

This chapter focuses on developing new software using COM. With the arrival of .NET, the recommendations for designing COM APIs have changed, assuming you care about .NET clients using your COM components (either now or in the future). Most existing COM components have a disadvantage of being designed before .NET existed, so their authors did not know what COM Interoperability ...

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.