RAD Studio VCL Reference
|
Loads a string from the compiled resources of a specified module.
function LoadStr(ident: Integer; codePage: Integer): AnsiStringBase; static; function LoadStr(hInstance: HINSTANCE; ident: Integer; codePage: Integer): AnsiStringBase; static;
static __fastcall AnsiStringBase LoadStr(int ident, int codePage); static __fastcall AnsiStringBase LoadStr(HINSTANCE hInstance, int ident, int codePage);
System::AnsiStringBase::LoadStr 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 hInstance is not given, System::AnsiStringBase::LoadStr loads the string from the current module (executable or shared library)
If the string resource does not exist, System::AnsiStringBase::LoadStr returns an empty string.
Moving display strings into string resources makes an application easier to localize without rewriting the program.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|