Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 2.2 KB

symbols-resource-identifiers.md

File metadata and controls

42 lines (28 loc) · 2.2 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Resource Identifiers (Symbols) (C++)
Resource Identifiers (Symbols) (C++)
02/14/2019
vc.editors.symbol.identifiers
symbols [C++], resource identifiers
symbols [C++], creating
resource symbols
symbols [C++], editing
resource editors [C++], resource symbols
8fccc09a-0237-4a65-b9c4-57d60c59e324

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