检查项目是否基于 MFC。
function IsMFCProject( 
   oProj, 
   bCWinAppRequired  
);
参数
- oProj 
 选定的项目
- bCWinAppRequired 
 指示检查中是否包含扩展 DLL。
返回值
如果项目是 MFC 项目,则为 true;否则为 false。
备注
使用此函数确定选定项目是否是 MFC 项目。
示例
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;
   }