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 );
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;