IsMFCProject
Checks if a project is MFC based.
function IsMFCProject(
oProj,
bCWinAppRequired
);
Parameters
oProj
The selected projectbCWinAppRequired
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
Reference
Concepts
Customizing C++ Wizards with Common JScript Functions