Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 2.04 KB

adding-atl-support-to-your-mfc-project.md

File metadata and controls

48 lines (32 loc) · 2.04 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Adding ATL Support to Your MFC Project
Adding ATL Support to Your MFC Project
11/04/2016
vc.codewiz.adding.atl.mfc
MFC, ATL support
ATL, MFC projects
b5fe15d6-7752-4818-b9f9-62482ad35c95

Adding ATL Support to Your MFC Project

If you have already created an MFC-based application, then you can add support for the Active Template Library (ATL) easily by using the IDE.

Note

This support applies only to simple COM objects added to an MFC executable or DLL project. You can add other COM objects (including ActiveX controls) to MFC projects, but the objects might not operate as expected.

::: moniker range=">=msvc-160"

  1. In Solution Explorer, right-click the project node.

  2. On the shortcut menu, click Add, and then click New Item.

  3. Choose ATL in the left pane, then choose ATL Support in the center pane.

::: moniker-end

::: moniker range="<=msvc-150"

To add ATL support to your MFC project

  1. In Solution Explorer, right-click the project node.

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

  3. Select ATL in the left pane, then choose Add ATL Support to MFC Project in the center pane.

::: moniker-end

For more information about how adding ATL support changes your MFC project's code, see Details of ATL Support Added by the ATL Wizard

See also

Adding a Class
Adding Functionality with Code Wizards
Adding a Member Function
Adding a Member Variable
Overriding a Virtual Function
MFC Message Handler
Navigating the Class Structure