Поделиться через


CStringT::LoadString

Reads a Windows string resource, identified by nID, into an existing CStringT object.

BOOL LoadString(
   HINSTANCE hInstance,
   UINT nID,
   WORD wLanguageID
);
BOOL LoadString(
   HINSTANCE hInstance,
   UINT nID
);
BOOL LoadString(
   UINT nID
);

Параметры

  • hInstance
    A handle to the instance of the module.

  • nID
    A Windows string resource ID.

  • wLanguageID
    The language of the string resource.

Возвращаемое значение

Nonzero if resource load was successful; otherwise 0.

Заметки

Loads the string resource (nID) from the specified module (hInstance) using the specified language (wLanguage).

Пример

// typedef CStringT<TCHAR, StrTraitATL<TCHAR, ChTraitsCRT<TCHAR>>> CAtlString;

CAtlString s;
s.LoadString(IDS_APP_TITLE);   

Требования

Header: cstringt.h

См. также

Основные понятия

CStringT Class

CStringT Members