The STRINGTABLE resource-definition statement specifies one or more string resources for an application. String resources are simply null-terminated Unicode strings that can be loaded when needed from the executable file, using the LoadString function.
STRINGTABLE [[optional-statements]] { stringID string . . . }
Statement | Description |
---|---|
CHARACTERISTICS dword | User-defined information about a resource that can be used by tools that read and write resource files. |
LANGUAGE language, sublanguage | Specifies the language for the resource. The parameters are constants from WINNT.H. |
VERSION dword | User-defined version number for the resource that can be used by tools that read and write resource files. |
Line one
Line two
RC allocates 16 strings per section and uses the identifier value to determine which section is to contain the string. Strings whose identifiers differ only in the bottom 4 bits are placed in the same section.
The following example demonstrates the use of the STRINGTABLE statement:
#define IDS_HELLO 1
#define IDS_GOODBYE 2
STRINGTABLE
{
IDS_HELLO, "Hello"
IDS_GOODBYE, "Goodbye"
}
LoadString, ACCELERATORS, CHARACTERISTICS, DIALOG, LANGUAGE, MENU, RCDATA, VERSION