CString strMessage; strMessage.LoadString(IDS_HELLO_WORLD);
CString strTitle; AfxGetApp()->GetMainWnd()->SetWindowText(strTitle.LoadString(AFX_IDS_APP_TITLE));In this example, we are loading the application title string resource and setting it as the main window's title. The package library for CString LoadString is MFC (Microsoft Foundation Classes).