共用方式為


SetFilters

更新:2007 年 11 月

加入專案資料夾的來源 (Source)、包含 (Include) 和資源 (Resource) 篩選條件。

 function SetFilters(        oProj   );

參數

  • oProj
    選取的專案。

備註

呼叫此函式來加入專案資料夾的來源、包含和資源篩選條件。此函式在專案中會尋找下列的符號:

  • SOURCE_FILTER

  • INCLUDE_FILTER

  • RESOURCE_FILTER

這些符號包含用於篩選的檔案副檔名。

範例

// Create and set the project name and path.
selProj = CreateProject(strProjectName, strProjectPath);
// Add the previously-identified configurations to the project.
AddConfigurations(selProj, strProjectName);
// Set filters for the project.
SetFilters (selproj);
// Indicate that the project is an ATL project.
selProj.Object.keyword = "AtlProj";

請參閱

工作

建立自訂精靈

概念

使用 Common JScript 函式自訂 C++ 精靈

設計精靈

其他資源

C++ 精靈的 JScript 函式