CStringT::AnsiToOem
모든 문자를이 변환 CStringT 개체에서 ANSI 문자를 OEM 문자 집합을 설정 합니다.
void AnsiToOem();
설명
함수를 사용할 수 없는 경우 _UNICODE 정의 됩니다.
예제
// OEM character 252 on most IBM-compatible computers in
// Western countries/regions is superscript n, as in 2^n.
// Converting it to the ANSI English charset results in a
// normal character 'n', which is the closest possible
// representation.
CStringT<char, StrTraitATL<char, ChTraitsCRT<char>>> str((WCHAR)252);
str.OemToAnsi();
ASSERT(str[0] == 'n');
// Be aware that in OEM to ANSI conversion the 'n'
// from the previous result cannot be converted back to
// a supsercript n because the system does not know what
// the character's value truly was.
str.AnsiToOem();
ASSERT(str[0] != 252);
ASSERT(str[0] == 'n');
요구 사항
헤더: cstringt.h