STRINGTABLE Resource

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This resource-definition statement specifies one or more string resources for an application. String resources are null-terminated Unicode strings that can be loaded as needed from the executable file, using the LoadString function.

STRINGTABLE [[optional-statements]] { stringIDstring . . . }

Parameters

  • optional-statements
    Specifies options for a STRINGTABLE resource. It can be zero or more of the following statements.

    Value Description

    CHARACTERISTICS dword

    User-defined information about a resource that can be used by tools that read and write resource files. For more information, see CHARACTERISTICS Statement.

    LANGUAGE language, sublanguage

    Specifies the language for the resource. For more information, see LANGUAGE Statement.

    VERSION dword

    User-defined version number for the resource that can be used by tools that read and write resource files. For more information, see VERSION Statement.

  • stringID
    Specifies an unsigned 16-bit integer that identifies the resource.
  • string
    Specifies one or more strings, enclosed in double quotation marks. The string must be no longer than 4,097 characters and must occupy a single line in the source file. To add a carriage return to the string, use this character sequence: \012. For example, "Line one\012Line two" defines a string that is displayed as follows.

    Line one
    Line two 
    

Example

The following code example shows how to use the STRINGTABLE statement.

#define IDS_HELLO 1
#define IDS_GOODBYE 2

STRINGTABLE
{
  IDS_HELLO, "Hello"
  IDS_GOODBYE, "Goodbye"
} 

See Also

Reference

ACCELERATORS Resource
CHARACTERISTICS Statement
DIALOG Resource
LANGUAGE Statement
MENU Statement
RCDATA Resource
VERSION Statement

Other Resources

LoadString