XLL+ Class Library

::XllLoadStringForLanguage

Loads a string from the resource file, in a particular language

[C++]
BOOL XllLoadStringForLanguage(
   UINT resid,
   LANGID langid,
   CString& str
);

Parameters

resid

Numeric resource string identifier.

langid

The language ID of the desired language. This can be formed using the MAKELANGID(...) macro, or found using LANGIDFROMLCID(GetThreadLocale()).

str

If the function succeeds, the string will be loaded into this variable.

Return value

TRUE if the function succeeds, FALSE if it fails. It will fail if the current resource file handle is invalid, or if the resource cannot be found.

Remarks

The function searches the current string resource file (as returned by XllGetStringResourceHandle) for a string resource in the specified language, using the logic described in ResLoadString().

Requirements

Header: xllres.h

See Also

Global resource functions