Resource Identifiers (Symbols) (C++)

A symbol is a resource identifier (ID) that consists of two parts, a symbol name (text string) mapped to a symbol value (integer), for example:

IDC_EDITNAME = 5100

Symbol names are most often referred to as identifiers.

Symbols provide a descriptive way of referring to resources and user-interface objects, both in your source code and while you're working with them in the resource editors. You can view and manipulate symbols in one convenient place using the Resource Symbols dialog box.

As your application grows in size and sophistication, so does its number of resources and symbols. Tracking large numbers of symbols scattered throughout several files can be difficult. The Resource Symbols dialog box simplifies symbol management by offering a central tool through which you can:

When you create a new resource or resource object, the resource editors provide a default name for the resource, for example, IDC_RADIO1, and assign a value to it. The name-plus-value definition is stored in the Resource.h file.

Note

When you are copying resources or resource objects from one .rc file to another, Visual C++ may change the transferred resource's symbol value, or symbol name and value, to avoid conflicts with symbol names or values in the existing file.

Requirements

Win32

See also

Working with Resource Files
Resource Files
Resource Editors