System.AnsiStringT.LoadStringW

From RAD Studio API Documentation
Jump to: navigation, search

C++

dependent System::AnsiStringT<CP> & __cdecl LoadStringW(HINSTANCE__ * hInstance, int ident);

Properties

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

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