Share via


SetFilters

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at SetFilters.

Adds source, include, and resource filters for the project folders.

Syntax

  
      function SetFilters(   
   oProj    
);  

Parameters

oProj
The selected project.

Remarks

Call this function to add source, include, and resource filters for the project folders. This function finds the following symbols in the project:

  • SOURCE_FILTER

  • INCLUDE_FILTER

  • RESOURCE_FILTER

These symbols contain the file extensions used in filtering.

Example

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

See Also

Customizing C++ Wizards with Common JScript Functions
JScript Functions for C++ Wizards
Creating a Custom Wizard
Designing a Wizard