Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



start stringtable

start stringtable source-file

[exportpath location]

[headeronly]

end

A start stringtable section specifies the source file for the string table. A string table is a collection of string identifiers with corresponding values. The source file is a simple text file with the file extension .st, and is used to generate the .cpp and .h files which contains the string constants required for the program. The header file location is added to the list of userinclude directories so that the source files may include the generated header. The .cpp file is added to the list of source files, which are built into a component.

For more information on string tables, refer to String Pools.

Note: The .cpp file need not be added explicitly into the list of sources, as this will be done implicitly while building the component.

The optional exportpath location specifies a directory location for the generated header file.

The optional headeronly keyword causes only the .h file to be generated, and no .cpp files are generated or included into the project. If the exportpath is specified, the .h file is copied to the specified location.

Example

This example will generate HttpStringConstants.cpp and HttpStringConstants.h using the HttpStringConstants.st file, and export the HttpStringConstants.h to the \epoc32\include directory.

START STRINGTABLE HttpStringConstants.st
EXPORTPATH  \epoc32\include
END