Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 2.28 KB

adding-an-atl-simple-object.md

File metadata and controls

34 lines (24 loc) · 2.28 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Adding an ATL Simple Object
Adding an ATL Simple Object
11/04/2016
vc.codewiz.classes.adding.atl
ATL projects, adding objects
objects [ATL]
ATL, simple objects
9c57d2ef-0447-4c84-8982-3304b8e49847

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