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::OemToAnsi
CString                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void OemToAnsi();
 
  Remarks
 
  Converts all the characters in this CString object from the OEM
  character set to the ANSI character set. See the IBM PC Extended
  Character Set table and the ANSI table in the <Microsoft Windows
  Programmer's Reference>.
 
  This function is available only in the Windows compiled library of the
  Microsoft Foundation classes and is declared in AFX.H only if _WINDOWS
  is defined.
 
  Example
 
  CString s( '\253' );  // Octal oem code for '1/2'
  s.OemToAnsi();
  ASSERT( s == "\265" ); // Octal ANSI code for '1/2'
 
 
  See Also
 
  CString::AnsiToOem
 
 
                                     -♦-