XLL+ Class Library (6.3)

::ResGetStringFromStringTableA

Gets a string from a resource file in a particular language

BOOL ResGetStringFromStringTableA(
   HINSTANCE hinst,
   UINT uStringID,
   LANGID langid,
   CStringA& res
);

Parameters

hinst

Module handle of a resource file.

uStringID

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

res

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 resource file handle is invalid, or if the resource cannot be found.

Remarks

This function looks for a resource string in a specified language and sub-language, and fails if it cannot be found. It is therefore advisable to use this method only for strings which have been specifically located using ResFindLanguageForResource().

Requirements

Header: xllres.h

See Also

Global resource functions