Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CString::LoadString
CString                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL LoadString( UINT nID )
  throw( CMemoryException );
 
  Parameter   Description
 
  <nID>       A Windows string resource ID.
 
  Remarks
 
  Reads a Windows string resource, identified by <nID>, into an existing
  CString object. The maximum string size is 255 characters.
 
  This function is declared in AFX.H only if _WINDOWS is defined. Its use
  requires the Windows compiled version of the Microsoft Foundation
  classes, and it is normally used with AFXWIN.H.
 
  Return Value
 
  TRUE if resource load was successful; otherwise FALSE.
 
  Example
 
  #define IDS_FILENOTFOUND 1
  CString s;
  s.LoadString( IDS_FILENOTFOUND );
 
 
 
                                     -♦-