Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Establishes the precompiled header settings for the project.
function SetCommonPchSettings(
oProj
);
Parameters
- oProj
The selected project.
Remarks
Call this function to establish the precompiled header settings for the project.
This function sets the UsePrecompiledHeader property to the following:
pchUseUsingSpecific Uses the /Yu (Use Precompiled Header File) compiler setting.
pchCreateUsingSpecific Uses the /Yc (Create Precompiled Header File) compiler setting.
Example
if ((strAppType == "LIB" || ((strAppType == "CONSOLE") &&
wizard.FindSymbol(SUPPORT_MFC"))) && !Pch)
{
AddFilesToProject(selProj, strProjectName, InfFile);
SetNoCommonPchSettings(selProj);
}
else
{
AddFilesToProject(selProj, strProjectName, InfFile);
SetcommonPchSettings(selProj);
}
See Also
Tasks
Reference
Concepts
Customizing C++ Wizards with Common JScript Functions