Turkish charecters in C++

Status
Not open for further replies.

adamahmet

Newbie level 6
Joined
Oct 13, 2003
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
76
I use Visual c++6.0 with windows xp servicepack1(Turkish version). I want to show Turkish charecters on the screen. How can I fix this problem?
 

adamahmet said:
I use Visual c++6.0 with windows xp servicepack1(Turkish version). I want to show Turkish charecters on the screen. How can I fix this problem?

Where are you printing your text? Are you using winform? console window?

Dostum nereye nasıl yazdırıyorsun da türkçe karakterler çıkmıyor ?
 

I currently use VC++ .Net and everything is O.K.
If you make API/MFC application, there shouldn't be any problem.
 

i use cout for printing the text. and i make console application or win application without MFC.
 

You must firstly convert characters in text that you want to print to OEM-defined character set. You can do this transformation by using CharToOEM Windows API.
Code:
BOOL CharToOem(

    LPCTSTR lpszSrc,	// pointer to string to translate  
    LPSTR lpszDst 	// pointer to translated string 
   );
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…