Dialog Box & Menu Fonts for Russian application

G

Guest

Hello,
I have a multilingual application, to which I am adding Russian. The prolem
is that all the dialog boxes & Menus are showing junk characters instead of
Cyrillics!!
while my window contents are working fine. I tried setting the Regional
options to Russion, but still the same problem, I also put the font of the
dialog box to be Arial Unicode MS but that didn't help.
What do I have to do to make my Dialog boxes and fonts come up in Russian?
Thanks a lot
Srishti
 
G

Gary Chang[MSFT]

Hi Srishti,
I have a multilingual application, to which I am adding Russian. The prolem
is that all the dialog boxes & Menus are showing junk characters instead of
Cyrillics!! while my window contents are working fine.

Based on your description, the Russion characters which you specified in
your dialog box's control and menus will be displayed as garbled text while
the Russion text in the other window contents has no problem, please let me
know if I have misunderstood anything.

If so, I think the problem is you havn't specify the Russian language,
sub-language and codepage in the resource script before the corresponding
resource statements which show the garbled text in run-time.

In this scenario you can modify your application resource script(.rc file)
to specify the correct language, sub-language and codepage for these
resource statements in question, for example:
...
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) //if you define
the U.S. English as your projcet's Resource language
#ifdef _WIN32
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
#pragma code_page(1251)
#endif //_WIN32
...
////////////////////////////////////////////////////////////////////////////
/
//
// Dialog
//

IDD_ABOUTBOX DIALOGEX 0, 0, 235, 55
...

By the wat, I suggest you can also take a look on the following newsgroup
threads, which discussed the similar issues:
http://groups-beta.google.com/group/microsoft.public.vc.utilities/browse_frm
/thread/6235aba1b29e3876/d470e09d7e8b8b3e?q=LANGUAGE+LANG_RUSSIAN&rnum=4&hl=
en#d470e09d7e8b8b3e

http://groups-beta.google.com/group/microsoft.public.vc.mfc/browse_frm/threa
d/da9e813e160eb214/01f44ce2f917f463?q=LANGUAGE+LANG_RUSSIAN&rnum=27&hl=en#01
f44ce2f917f463


Hope this helps!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top