CString::LoadString
This method reads a Windows CE string resource, identified by nID, into an existing CString object.
BOOL LoadString(
UINT nID );
Parameters
- nID
Specifies a Windows CE string resource ID.
Return Value
Nonzero if resource load was successful; otherwise, it is zero.
Example
The following example demonstrates the use of CString::LoadString.
// example for CString::LoadString #define IDS_FILENOTFOUND 1 CString s; if (! s.LoadString( IDS_FILENOTFOUND )) { AfxMessageBox("Error Loading String: IDS_FILENOTFOUND"); ... }
Requirements
Windows CE versions: 1.0 and later
Header file: Declared in Afx.h
Platform: H/PC Pro, Palm-size PC, Pocket PC