Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

Dialog Box & Menu Fonts for Russian application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sonu - 09 Jun 2005 21:17 GMT
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
"Gary Chang[MSFT]" - 10 Jun 2005 10:27 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.