Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 2.14 KB

File metadata and controls

41 lines (27 loc) · 2.14 KB
title Resource Identifiers (Symbols) (C++)
ms.date 02/14/2019
f1_keywords
vc.editors.symbol.identifiers
helpviewer_keywords
symbols [C++], resource identifiers
symbols [C++], creating
resource symbols
symbols [C++], editing
resource editors [C++], resource symbols
ms.assetid 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 an 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