FIX: ???? ????? std::wofstream ??? "??????? ??? DBCS ?????? ?? ???????" ??? ???

?????? ????????? ?????? ?????????
???? ???????: 274012 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

???????

???? ?? ?? ??? ????? ??? ???? ?????? ?????? (DBCS) ?????? ??? ???.

??? ???? ??????? ???????? ????????? ???????? ??????? ???? "" ?? ??????? ??? ??? STLout.txt ??? ????? ?????? DBCS 0x30F0 ??? ???.
#include <fstream>

void main()
{
  wchar_t ch = 0x30F0; /* DBCS Japanese test character. */ 
  std::wofstream wfout;
  wfout.imbue(std::locale("Japanese"));
  wfout.open("STLout.txt");
  wfout << L"Hello";
  wfout << ch;  /* Write the DBCS character to the output text file. */ 
  //wfout.clear(); /* Workaround: Call clear() after the DBCS output. */ 
  wfout << L" There\n";  /* This is not written to the output text file. */ 
}
				

????

??? ??? ???????? ??? ?????? ??? ???? "???? ????" ?? 6 Visual Studio. ?????? ??? ??????? ?????? ??? ??? ?????? Visual Studio ???? ??? ???? ????????? ????????? ??????? ?? "????? ??????? ?? Microsoft:
194022INFO: Visual Studio 6.0 ???? ??? ? ?? ? ??? ? ?????
194295HOWTO: ????? ?? ???? ????? ???? ??????? Studio ?????
????? ????? ???? ???? ???? ?? Visual Studio ?? ???? Microsoft ?????? ??? ?????:
http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ????? ??? ???????. ?? ????? ??? ??????? ???? ??? ?? Visual Studio 6.0 ???? ?????? Service Pack 5.

???????

???? ???????: 274012 - ????? ??? ??????: 21/???? ??????/1435 - ??????: 2.3
????? ???
  • Microsoft Visual C++ 6.0 Enterprise Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++, 32-bit Learning Edition 6.0
????? ??????: 
kbnosurvey kbarchive kbmt kbhotfixserver kbqfe kbbug kbfix kbqfe kbstl KB274012 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????274012

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com