Adding an ATL Simple Object

To add an ATL (Active Template Library) object to your project, your project must have been created as an ATL 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.

You can define COM interfaces for your new ATL object when you first create it, or add them later by using the Implement Interface command from the Class View shortcut menu.

To add an ATL simple object to your ATL COM project

  1. In either Solution Explorer or Class View, right-click the name of the project to which you want to add the ATL simple object.

  2. From the shortcut menu, click Add, and then click Add Class.

  3. In the Add Class dialog box, in the Templates pane, click ATL Simple Object, and then click Open to display the ATL Simple Object Wizard.

  4. Set additional options for your project on the Options page of the ATL Simple Object wizard.

  5. Click Finish to add the object to your project.

See also

Adding a Class
Adding a New Interface in an ATL Project
Adding Connection Points to an Object
Adding a Method
MFC Class
Adding a Generic C++ Class