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::AnsiToOem
CString                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void AnsiToOem();
 
  Remarks
 
  Converts all the characters in this CString object from the ANSI
  character set to the OEM 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 version of the
  Microsoft Foundation Class Library, and it is declared in AFX.H only if
  _WINDOWS is defined.
 
  Example
 
  CString s( '\265' );  // Octal ANSI code for '1/2'
  s.AnsiToOem();
  ASSERT( s == "\253" ); // Octal oem code for '1/2'
 
 
  See Also
 
  CString::OemToAnsi
 
 
                                     -♦-