The following two code segments can not run correctly, whether it is a bug of ICE?
How to...?
My EMail: wynner@126.com
====================================
......
......
#include <conio.h>
#include <iostream>
#include <string>
#include <comdef.h>
using namespace std;
......
......
int _tmain(int argc, _TCHAR* argv[])
{
wstring s = L"W0:<####>"; //"####" is chinese word (wide char), can not be display
wcout << s << endl;
wcout << L"W1:<####>" << endl; //"####" is chinese word(wide char) can not be display
_bstr_t bstr = "W2:<####>";
cout << (LPCTSTR)bstr << endl;
getch();
return 0;
}
......
......
====================================
......
......
#include <conio.h>
#include <iostream>
#include <string>
#include <comdef.h>
using namespace std;
int main(int argc, char* argv[])
{
wstring s = L"W0:<简体汉字>";
wcout << s << endl;
wcout << L"W1:<简体汉字>" << endl;
_bstr_t bstr = "W2:<简体汉字>";
cout << (LPCTSTR)bstr << endl;
getch();
return 0;
}
......
......

Reply With Quote
. 