MFC - writing programs in other languages. . .

Status
Not open for further replies.

C++

Junior Member level 3
Joined
Oct 12, 2004
Messages
29
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
243
Hi,
I've started working with dialogs in ms visual studio .Net, and I wanna know how I can make the buttons, and other objects display text other than those in the english language, like arabic, french, german, etc. . .
 

Hi,
u basically want to internationalize your dialogs,
well u have 2 choices
1) dynamically internationalizing(prefferred)
2) statically internationalizing (atlease i dont prefer)

in case 1, u will store the string u want displayed in a unicode file and load at respective place in dialog,
eg : suppose u have a label names text1, u will have code to load the string u want to be displayed in label text1 in the Dialog's InitDialog() method and similarly u load the dialogs caption etc....., this is dynamic loading and based on whihc language u want u read the respecitve file and load the string appropriatly,

in case 2, u have to build the dialogs using different fonts, and u need to maintains different rsc files , string tables for each language.

To give u a concrete pointer, read the MS Press book on Developing International Software.

Hope this helps
 

    C++

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…