IsMFCProject

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at IsMFCProject.

Checks if a project is MFC based.

  
      function IsMFCProject(   
   oProj,   
   bCWinAppRequired    
);  

Parameters

oProj
The selected project

bCWinAppRequired
Indicates whether extension DLLs are included in the check.

true if the project is an MFC project; otherwise false.

Use this function to determine if the selected project is an MFC project.

if (!IsMFCProject(selProj, true))  
   {  
      if (gbExceptionThrown)  
         return false;  
      var L_ErrMsg2_Text = "ATL support can only be added to MFC EXEs or MFC Regular DLLs.";  
      wizard.ReportError(L_ErrMsg2_Text);  
      return false;  
   }  

Customizing C++ Wizards with Common JScript Functions
JScript Functions for C++ Wizards
Creating a Custom Wizard
Designing a Wizard
IsATLProject
IsAttributedProject

Show: