O'Reilly logo

COM+ Programming: A Practical Guide Using Visual C++ and ATL by Pradeep Tapadiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Designing Interfaces

In the previous chapter we observed that in order to write a reusable component we need to separate the interface from details of implementation. We also learned that the first step in developing a COM component is defining the interfaces the component intends to expose.

The interfaces in the previous chapter were defined as C++ classes. This lets the vendor pick a C++ compiler of its choice and lets the client pick a vendor of its choice. However, in defining the architecture for COM, the COM committee had goals beyond C++ compiler independence and vendor independence. C++ language was not adequate to define an interface that would meet many of the goals. Therefore, COM specifies a language to define interfaces. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required