SetFilters

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

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

Tasks

Creating a Custom Wizard

Concepts

Customizing C++ Wizards with Common JScript Functions

Designing a Wizard

Other Resources

JScript Functions for C++ Wizards