Share via


Adding ATL Support to Your MFC Project

If you've already created an MFC-based application, you can easily add support for the Active Template Library (ATL) by inserting any of the ATL objects into your project.

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.

To add ATL support to your MFC project

  1. From ClassView, select the project to which you want to add ATL support, and click the right mouse button.

  2. From the popup menu, click New ATL Object … .

  3. When prompted, click Yes to add ATL support.

  4. From the ATL Object Wizard dialog, select the object you want to add.

    Note   If you only want ATL support without adding any ATL objects, click Cancel in the ATL Object Wizard.