Partager via


Resource Includes Dialog Box

You can use the Resource Includes dialog box to modify the environment's normal working arrangement of storing all resources in the project .rc file and all symbols in Resource.h.

To open the Resource Includes dialog box, right-click an .rc file in Resource View, then choose Resource Includes from the shortcut menu.

  • Symbol header file
    Allows you to change the name of the header file where the symbol definitions for your resource file are stored. For more information, see Changing the Names of Symbol Header Files.

  • Read-only symbol directives
    Enables you to include header files that contain symbols that should not be modified during an editing session. For example, you can include a symbol file that is shared among several projects. You can also include MFC .h files. For more information, see Including Shared (Read-Only) or Calculated Symbols.

  • Compile-time directives
    Allows you to include resource files that are created and edited separately from the resources in your main resource file, contain compile-time directives (such as those that conditionally include resources), or contain resources in a custom format. You can also use the Compile-time directives box to include standard MFC resource files. For more information, see Including Resources at Compile Time.

    Note

    Entries in these text boxes appear in the .rc file marked by TEXTINCLUDE 1, TEXTINCLUDE 2, and TEXTINCLUDE 3 respectively. For more information, see TN035: Using Multiple Resource Files and Header Files with Visual C++.

Once you have made changes to your resource file using the Resource Includes dialog box, you need to close the .rc file and then reopen it for the changes to take effect. For more information, see Including Resources at Compile Time.

For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

Win32

See Also

Tasks

How to: Specify Include Directories for Resources

Reference

Symbols: Resource Identifiers

Resource Files (Visual Studio)

Resource Editors