Implementing an Interface
To implement an interface, you must have created a project as an ATL COM application or as an MFC application that contains ATL support. You can use the ATL Project Wizard to create an ATL application, or add an ATL object to your MFC application to implement ATL support for an MFC application.
Once you create the project, to implement an interface, you must first add an ATL object. See Adding Objects and Controls to an ATL Project for a list of wizards that add objects to your ATL project.
The wizard does not support ATL dialogs, XML Web services using ATL, performance objects, or performance counters.
Once you have added the object or control, you can implement other interfaces, located in any available type library, using the Implement Interface Wizard.
If you are adding a new interface, you must add it manually to the project's .idl file. See Adding a New Interface in an ATL Project for more information.
To implement an interface
In Class View, right-click the class name for your ATL object.
Click Add from the shortcut menu, and then click Implement Interface to display the Implement Interface Wizard.
Select the interfaces to implement from the appropriate type libraries and click Finish.
In Class View, expand the object's Bases and Interfaces node to see the interface you have implemented, and then expand the interface's node to see its available properties, methods, and events.
You can also use the Object Browser to examine the members of the interface.