System.AnsiStringBase.LoadStringW

From RAD Studio API Documentation
Jump to: navigation, search

C++

System::AnsiStringBase & __cdecl LoadStringW(HINSTANCE__ * hInstance, int ident, int codePage);

Properties

Type Visibility Source Unit Parent
function public dstring.h System AnsiStringBase

Description

Loads a string from the compiled resources of a specified module.

LoadStringW loads a specified string resource.

ident is the resource identifier of the string.

hInstance is the instance handle of the module that contains the string resource.

If the string resource does not exist, LoadStringW returns an empty string.

Moving display strings into string resources makes an application easier to localize without rewriting the program.

See Also