XLL+ Class Library (7.0)


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

BOOL XllLoadStringForLanguage(
   UINT resid,
   LANGID langid,
   CString& str



Numeric resource string identifier.


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


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.


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().


Header: xllres.h

See Also

Global resource functions