Click here to Skip to main content
15,922,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problems writing to a file Pin
chandu00412-Sep-07 22:08
chandu00412-Sep-07 22:08 
GeneralRe: Problems writing to a file Pin
TheInfernalCrow12-Sep-07 22:49
TheInfernalCrow12-Sep-07 22:49 
GeneralRe: Problems writing to a file Pin
chandu00412-Sep-07 23:08
chandu00412-Sep-07 23:08 
AnswerRe: Problems writing to a file Pin
nbugalia12-Sep-07 23:37
nbugalia12-Sep-07 23:37 
GeneralRe: Problems writing to a file Pin
TheInfernalCrow12-Sep-07 23:45
TheInfernalCrow12-Sep-07 23:45 
AnswerRe: Problems writing to a file Pin
Nishad S13-Sep-07 0:23
Nishad S13-Sep-07 0:23 
QuestionRe: Problems writing to a file Pin
David Crow13-Sep-07 3:08
David Crow13-Sep-07 3:08 
QuestionHi I want to know how to distinguish two mouse signal. Pin
Charles of Korea12-Sep-07 16:40
Charles of Korea12-Sep-07 16:40 
AnswerRe: Hi I want to know how to distinguish two mouse signal. Pin
Sreedhar DV12-Sep-07 19:25
Sreedhar DV12-Sep-07 19:25 
GeneralRe: Hi I want to know how to distinguish two mouse signal. Pin
Roger Broomfield12-Sep-07 21:29
Roger Broomfield12-Sep-07 21:29 
QuestionVery Basic socket programming, Winsock! Newb help.. Pin
Beaon12-Sep-07 7:55
Beaon12-Sep-07 7:55 
AnswerRe: Very Basic socket programming, Winsock! Newb help.. Pin
Mark Salsbery12-Sep-07 8:06
Mark Salsbery12-Sep-07 8:06 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon13-Sep-07 6:03
Beaon13-Sep-07 6:03 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Mark Salsbery13-Sep-07 6:15
Mark Salsbery13-Sep-07 6:15 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon13-Sep-07 6:59
Beaon13-Sep-07 6:59 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Mark Salsbery13-Sep-07 7:04
Mark Salsbery13-Sep-07 7:04 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon14-Sep-07 3:43
Beaon14-Sep-07 3:43 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Mark Salsbery14-Sep-07 6:04
Mark Salsbery14-Sep-07 6:04 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon14-Sep-07 6:20
Beaon14-Sep-07 6:20 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon14-Sep-07 8:22
Beaon14-Sep-07 8:22 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Mark Salsbery14-Sep-07 12:39
Mark Salsbery14-Sep-07 12:39 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon17-Sep-07 5:49
Beaon17-Sep-07 5:49 
AnswerRe: Very Basic socket programming, Winsock! Newb help.. Pin
Beaon17-Sep-07 9:21
Beaon17-Sep-07 9:21 
GeneralRe: Very Basic socket programming, Winsock! Newb help.. Pin
Mark Salsbery17-Sep-07 9:43
Mark Salsbery17-Sep-07 9:43 
QuestionDisplaying text in non-english language on console [modified] Pin
ComplexLifeForm12-Sep-07 7:02
ComplexLifeForm12-Sep-07 7:02 
Hi,
I am trying to display non-english text on the std console. I have tried various methods like
setconsole, _wsetconsole etc.. Defined _UNICODE and UNICODE macros also used wstring, wcout thinking that wide char variant might print the non-english text. Below is my sample program

#include <iosstream>
#include <locale>
using namespace std;

int_tmain()
{
wstring nonEnglishName = _TEXT("槧雲鼻");
wcout.imbue(locale("jpn");
wcout << _TEXT("Name in japanese is = ") << nonEnglishName.c_str() << endl;

return 0;
}

The output I am getting is = Name in japanese is = ₧▀ë_ò@

My system locate is still set to US_ENGLSH and I do not want to change it.
Can anybody please guide me regarding the correct procedure for displaying non-english text on the console?

Thanks



-- modified at 13:46 Wednesday 12th September, 2007

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.