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";