Skip to content

Latest commit

 

History

History
85 lines (64 loc) · 3.15 KB

File metadata and controls

85 lines (64 loc) · 3.15 KB
title Adding or Deleting a String | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
vc.editors.string
dev_langs
C++
helpviewer_keywords
strings [C++], adding to string tables
string tables, deleting strings
strings [C++], deleting in string tables
string tables, adding strings
ms.assetid 077077b4-0f4b-4633-92d6-60b321164cab
caps.latest.revision 11
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Adding or Deleting a String

You can quickly insert new entries into the string table using the String editor. New strings are placed at the end of the table and are given the next available identifier. You can then edit the ID, Value, or Caption properties in the Properties window as needed.

The String editor makes sure you do not use an ID that's already in use. If you select an ID already in use, the String editor will notify you and then assign a generic unique ID, for example IDS_STRING58113.

To add a string table entry

  1. Open the string table by double-clicking its icon in Resource View.

    [!NOTE] If your project doesn't already contain an .rc file, please see Creating a New Resource Script File.

  2. Right-click within the string table and choose New String from the shortcut menu.

  3. In the String editor, select an ID from the ID drop-down list or type an ID directly in place.

  4. Edit the Value, if necessary.

  5. Type an entry for the Caption.

    [!NOTE] Null strings are not allowed in Windows string tables. If you create an entry in the string table that is a null string, you will receive a message asking you to "Please enter a string for this table entry."

To delete a string table entry

  1. Select the entry you want to delete.

  2. On the Edit menu, click Delete.

- or -

  • Right-click the string you want to delete and choose Delete from the shortcut menu.

- or -

  • Press the DELETE key.

For information on adding resources to managed projects (those that target the common language runtime), please see Resources in Desktop Apps 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

String Editor