AddCommonConfig
Adds the default configurations to the project.
function AddCommonConfig(
oProj,
strProjectName
);
Parameters
oProj
The selected project.strProjectName
The name of the project.
Remarks
Call this function to add the default code model configurations to the project your wizard creates. You can specify either a Release configuration or a Debug configuration. The following tables list the code model object's default property settings for each configuration type.
Visual C++ Compiler Tool Object
Object property |
Release configuration setting |
Debug configuration setting |
---|---|---|
pchUseUsingSpecific |
pchUseUsingSpecific |
|
3 |
3 |
|
Not applicable |
true |
|
debugEnabled |
debugEditAndContinue |
|
optimizeMaxSpeed |
Not applicable |
|
Not applicable |
runtimeBasicCheckAll |
|
true |
true |
|
true |
Not applicable |
|
true |
Not applicable |
|
true |
Not applicable |
Visual C++ Configuration Object
Object property |
Release configuration setting |
Debug configuration setting |
---|---|---|
"Release" |
"Debug" |
|
"Release" |
"Debug" |
Visual C++ Linker Tool Object
Object property |
Release configuration setting |
Debug configuration setting |
---|---|---|
subSystemWindows |
subSystemWindows |
|
machineX86 |
machineX86 |
|
true |
true |
Example
// Create the Visual C++ project.
selProj = CreateProject(strProjectName, strProjectPath);
// Add the common configuration to the project.
AddCommonConfig(selProj, strProjectName);
selProj.Object.keyword = "MyProj";
See Also
Tasks
Concepts
Customizing C++ Wizards with Common JScript Functions