Interface Map Macros [Previous] [Next]

Interface Map Macros

In the course of figuring out how ATL manages interfaces and QueryInterface, we'll look at some fifteen macros for composing COM classes. These macros perform all sorts of interface-switching magic. The ordinary COM_INTERFACE_ENTRY macro finds an interface's offset within the object. ATL also includes macros to perform tear-offs and aggregation, two of the more arcane methods of composing COM classes.

Before we examine each technique in detail, here's a quick summary of the interface map macros we'll cover:

Throughout the rest of this chapter, we'll study each of these interface map macros in detail.