XLL+ Class Library (6.3)

::XllLoadStringForLanguageA

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

BOOL XllLoadStringForLanguageA(
   UINT resid,
   LANGID langid,
   CStringA& 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