XLL+ Class Library

::XllLoadStringForLocale

Loads a string from the resource file, for a particular locale

[C++]
BOOL XllLoadStringForLocale(
   UINT resid,
   LCID lcid,
   CString& str
);

Parameters

resid

Numeric resource string identifier.

lcid

The locale ID of the desired locale. This can be formed using the MAKELCID(...) macro, or found using 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 for a string resource in the language implied by the locale. It is equivalent to calling:

XllLoadStringForLanguage(resid, LANGIDFROMLCID(lcid), str);

Requirements

Header: xllres.h

See Also

Global resource functions