Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Japanese in C++?

Status
Not open for further replies.

SamuraiMasterSlik

Technical User
Nov 17, 2002
1
US
How do i write japanese text to the screen in C++? i use Visual C++ 6.0, and i'm kinda new, but i know alot about C++, I'd appreciate the help.
 

Your locale should be Japanese so that you will be able to display Japanese characters. However, if you wish to have both English and Japanese in your OS, simply go to Control Panel --> Regional and Language Options --> Advanced. Then on the combo box, select Japanese.

Note that this only works for Windows 2000 and Windows XP. The instructions I am giving is for Windows XP.

Having done the above procedure above, you can now display Japanese characters.

Now, perhaps you will ask me how to type Japanese characters using the keyboard? That one is also simple.

Here's how.

Go to Control Panel --> Regional and Language Options --> Languages --> Details. In the Settings tab press Add. On the Add Input Language dialog, choose Japanese then press OK. There it is finished.

You can switch now between English and Japanese by clicking on the 'EN' text located at the right-hand side of the Taskbar.

To type Japanese characters, choose 'JP' from then press ALT+~. This will switch you between Japanese and English input. Take note that this only works if 'JP' is displayed at the right side of the taskbar.

Now in C++(MSVC++), I think that when you are using a AppWizard, you will be asked of a locale. I think that one is step 3 of the wizard. Having done my instructions above, a choice will be given to you in step 3 regarding the locale. Here, choose Japanese.

Hope this helps! [thumbsup]

Rome did not create a great empire by having meetings, they did it by
killing all those who opposed them.

- janvier -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top