Bagikan melalui


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.

Return Value

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

Remarks

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

Example

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

See Also

Tasks

Creating a Custom Wizard

Concepts

Customizing C++ Wizards with Common JScript Functions

Designing a Wizard

Reference

IsATLProject

IsAttributedProject

Other Resources

JScript Functions for C++ Wizards