AddATLSupportToProject

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see AddATLSupportToProject on docs.microsoft.com. Adds ATL support to an MFC project.

  
      function AddATLSupportToProject(   
   oProj   
);  

Parameters

oProj
The selected project.

true if ATL support was successfully added to the MFC project.

Use this function to add ATL support to an MFC project created by the wizard.

The wizard displays a message box to confirm adding ATL support to the MFC project. Upon confirmation, the wizard checks for existing support and adds all the necessary GUIDs, templates, headers, and additional functionality so that the MFC project created by the wizard supports ATL.

var oCM = selProj.CodeModel;  
var L_TRANSACTION_Text = "Add ATL Support To Project";  
oCM.StartTransaction(L_TRANSACTION_Text);  
var bRet = AddATLSupportToProject(selProj);  
if (bRet)  
   oCM.CommitTransaction();  
else  
   oCM.AbortTransaction();  
return bRet;  

Customizing C++ Wizards with Common JScript Functions
Creating a Custom Wizard
Designing a Wizard
CanAddATLClass
IsMFCProject
Introduction to ATL

Show: