Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 2.25 KB

adding-formatting-or-special-characters-to-a-string.md

File metadata and controls

50 lines (39 loc) · 2.25 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Adding Formatting or Special Characters to a String | Microsoft Docs
11/04/2016
cpp-windows
article
C++
special characters, adding to strings
ASCII characters, adding to strings
strings [C++], formatting
strings [C++], special characters
c40f394a-8b2c-4896-ab30-6922863ddbb5
11
mikeblome
mblome
ghogen

Adding Formatting or Special Characters to a String

To add formatting or special characters to a string

  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. Select the string you want to modify.

  3. In the Properties Window, add any of the standard escape sequences listed below to the text in the Caption box, and press ENTER.

    To get this Type this
    New line \n
    Carriage return \r
    Tab \t
    Backslash (\) \|
    ASCII character \ddd (octal notation)
    Alert (bell) \a

Note

The String editor does not support the full set of escaped ASCI characters. You can only use those listed above.

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