void AnsiToOem( );
Converts all the characters in this CString object from the ANSI character set to the OEM character set. See the http://msdn.microsoft.com/en-us/library/ms857349.aspx in the C++ Language Reference.
The function is not available if _UNICODE is defined.
// OEM character 252 on most IBM compatible computers in // Western countries is superscript n, as in 2^n. // Converting it to the ANSI charset results in a // normal character 'n', which is the closest possible // representation. CString str(252); str.OemToAnsi(); ASSERT(str == 'n'); // Be aware that in OEM to ANSI conversion the 'n' // from the previous result can't be converted back to // a supsercript n because the system doesn't know what // the character's value truly was. str.AnsiToOem(); ASSERT(str != 252); ASSERT(str == 'n');
See Also CString::OemToAnsi