ATL Development   «Prev 

Insert a new ATL object

An ATL object can also be added into a project using New ATL Object from the Visual C++ Insert menu. This brings up the ATL Object Wizard. To add a basic COM object, select Simple Object.

New ATL Object dialog

Click the Next button. This brings up the ATL Object Wizard Properties dialog.
ATL Object Wizard Properties

We did not use this method because it does not allow us to specify more than one interface in a COM object! To add a second interface, we would have to add code manually several places within the project.