向项目中添加默认配置。
function AddCommonConfig( 
   oProj, 
   strProjectName  
);
参数
- oProj 
 选定的项目。
- strProjectName 
 项目的名称。
备注
调用该函数将默认代码模型配置添加到向导创建的项目中。 可以指定“Release”配置,也可以指定“Debug”配置。 下表列出每种配置类型的代码模型对象的默认属性设置。
Visual C++ 编译器工具对象
| 对象属性 | “Release”配置设置 | “Debug”配置设置 | 
|---|---|---|
| pchUseUsingSpecific | pchUseUsingSpecific | |
| 3 | 3 | |
| 不适用 | true | |
| debugEnabled | debugEditAndContinue | |
| optimizeMaxSpeed | 不适用 | |
| 不适用 | runtimeBasicCheckAll | |
| true | true | |
| true | 不适用 | |
| true | 不适用 | |
| true | 不适用 | 
Visual C++ Configuration 对象
| 对象属性 | “Release”配置设置 | “Debug”配置设置 | 
|---|---|---|
| Release | Debug | |
| Release | Debug | 
Visual C++ 链接器工具对象
| 对象属性 | “Release”配置设置 | “Debug”配置设置 | 
|---|---|---|
| subSystemWindows | subSystemWindows | |
| machineX86 | machineX86 | |
| true | true | 
示例
// Create the Visual C++ project.
selProj = CreateProject(strProjectName, strProjectPath);
// Add the common configuration to the project.
   AddCommonConfig(selProj, strProjectName);
   selProj.Object.keyword = "MyProj";