BUG: ???? .NET Visual C++ ?? Visual C++ 2005 ????? ??? std::string ?????????? std::wstring ???? ????

?????? ????????? ?????? ?????????
???? ???????: 326616 - ??? ???????? ???? ????? ????? ??? ???????.
??????
????? ???? | ?? ????

?? ??? ??????

???????

?? ?? ??? ??? ?????? ??? ???? ????? ??????? ???????:
  • ??????? std::string ??? ??? ??? ??????? ???? ?? 15 ?????.
  • ??????? std::wstring ??? ??? ??? ??????? ??? ?? 15 ?????.

?????

??? ????? ??????? std::string ?? std::wstring ?????? ?????? ????? ??? ??? ????? ??? ?? 15 ?????. ??? ??? ??? ??????? ???? ?? 15 ?????, ??? ????? ??????? ???? ??? ???????.

?????? ????? ??? Autoexp.dat ?????? ?? ??? ?????? std::string ?????. ??? ??????? ??? _Bx._Buf ?????? std::string ????? ????? ?????? ??????. ??? ??????? ??? _Bx._Ptr ?????? ????? ??? std::string ????? ??? ???????. ????? ?? ??? ????? ??? _Bx._Ptr std::string ?? ??? autoexp.dat, ?? ???? ?????? ????????? std::string ???? ???? ??? ???? ?? 15 ?????. ????? ?? ??? ????? ??? _Bx._Buf std::wstring ?? ??? autoexp.dat, ?? ???? ?????? ????????? std::wstring ???? ???? ????? ??? ?? 15 ?????.

????

????? ???? ?????? ???? ???? ??? ????????? ????? ?? ????? ???? (????????). ????? ???? ???? ?? ????? ???????? ?????? ?????? ????? ?? ????? ???? ?????? ??????? ?????? ??? ???????. ???? ??? Autoexp.dat ??????? ??????? ????? ???????? ?????? ????? ????? Mcee_mc.dat ??????? ????? ???????? ???????. ??? ??? ???????? ?? ?????? Autoexp.dat ?? ?????.

?????? ??? Autoexp.dat ???? ??????? ???????:
  1. ???? ??????? ?? ?? ???? ???? ????.
  2. ??? ??? Autoexp.dat ?? ?????? .NET\Common7\Packages\Debugger c:\Program Files\Microsoft Visual Studio.
  3. ?? ??? Autoexp.dat ??? ???? ?????? ???????:
    • std::basic_string<char,std::char_traits<char>,std::allocator<char> >=<_Bx._Buf>
    • std::basic_string<unsigned short,std::char_traits<unsigned short>,std::allocator<unsigned short> >=<_Bx._Ptr>
    • std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >=<_Bx._Ptr>
  4. ??????? ?????? ???? ??? ?????? ????? ?? ?????? 3 ?? ?????? ???????:
    • std::basic_string<char,std::char_traits<char>,std::allocator<char> >=
      _Buf=<_Bx._Buf> _Ptr= <_Bx._Ptr>
    • std::basic_string<unsigned short,std::char_traits<unsigned short>,std::allocator<unsigned short> >=_Buf=<_Bx._Buf> _Ptr= <_Bx._Ptr>
    • std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >=<_Bx._Buf> _Ptr= <_Bx._Ptr>

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ????? ??? ???????.

??????? ????

????? ????? ????? ?? ????

  1. ????? ????? ???? Win32 Visual C++:
    1. ?? ??????? ???? ???? ??? ????.
    2. ??? ????? Project ???? ??? ?????? Visual C++ ? ?? ???? ??? Project Win32 ?? ???????.

      ?????? ?? Visual Studio 2005 ? ??? ????? ?????? Visual C++ ??? Visual C++.
    3. ??? ??????? LongStringDemo.
    4. ?? ????? ??????? Win32 ???? ??? ??????? ??????? ?? ?? ?????? ??? ??????? ????? ????? ???? ??????.
    5. ??? ?????? ?????? ? ???? ?????? ???? ???????? ????? Project ?? ???? ??? ?????.
  2. ?? ?????? ?????? ???? ??? ?????? ?????? ??? ??????? ?????? ??? ?? ???? ??? ????? C++ ???? ?????.
  3. ??? ????? LongStringDemo.cpp.
  4. ?? ?????? ????????? ???????? ??????? ??? file:
    #include <string>
    using namespace std;
    void main()
    {
    	//Ansi String
    	string szAnsiString;
    	szAnsiString = "c:\\Program Files\\Microsoft Visual Studio .Net";
    
    	//Wide Char String
    	wstring wszWCharString;
    	wszWCharString = L"c:\\Program Files\\Microsoft Visual Studio .Net";
    }
    
  5. ?? ??????? ????? ? ???? ??? ???? ????.
  6. ?? ??????? ????? ? ???? ??? ???? ????? (F11) ?? ??? ???????.
  7. ?? ??????? ????? ? ??? ??? Windows, ??? ??? ?????? ?? ???? ??? watch1.
  8. ????? ????? szAnsiString ????? wszWCharString ???? ????????. ????? ????? ?????? ?????? ?????? ??????? ??? ??????? szAnsiString ?? wszWCharString.
  9. ?? ???? ???????? ? ???? ?? ???? ????? szAnsiString ?? wszWCharString.

???????

???? ???????: 326616 - ????? ??? ??????: 12/?? ?????/1426 - ??????: 2.0
????? ???
  • Microsoft Visual C++ 2005 Express Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
????? ??????: 
kbmt kbdebug kbbug KB326616 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????326616

????? ???????

 

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