SetCommonPchSettings

 

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 SetCommonPchSettings.

Establishes the precompiled header settings for the project.

  
      function SetCommonPchSettings(   
   oProj    
);  

Parameters

oProj
The selected project.

Call this function to establish the precompiled header settings for the project.

This function sets the UsePrecompiledHeader property to the following:

if ((strAppType == "LIB" || ((strAppType == "CONSOLE") &&   
   wizard.FindSymbol(SUPPORT_MFC"))) && !Pch)  
   {  
      AddFilesToProject(selProj, strProjectName, InfFile);  
      SetNoCommonPchSettings(selProj);  
   }  
else  
   {  
      AddFilesToProject(selProj, strProjectName, InfFile);  
      SetcommonPchSettings(selProj);  
   }  

Customizing C++ Wizards with Common JScript Functions
JScript Functions for C++ Wizards
Creating a Custom Wizard
Designing a Wizard
SetNoPchSettings
AddCommonConfig

Show: