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.
Syntax
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
Customizing C++ Wizards with Common JScript Functions
JScript Functions for C++ Wizards
Creating a Custom Wizard
Designing a Wizard
IsATLProject
IsAttributedProject