Click here to Skip to main content
11,713,845 members (86,193 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ MFC MFC/C++
Hi all !!!
i want to create a program with multi language by develop MFC/C++
so, i have a few xml file, contain all my language need to translate
Ex: en.xml, fr.xml, jp.xml, language.xml
i have read all my *xml file
now, i want to translate when user click radio button on dialog.
how to get infomation of this dialog to translate language from *.xml file.
Ex: id of this dialog , id of all control in this dialog, and type of this control
i want my dll is auto translate when dialog is showed
And, remember that! this program is translate by dll,not by another function on program
plz, give me a few solution.
sorry about my english.
thanks so much
Posted 6-May-13 21:00pm
Maximilien at 7-May-13 11:13am
have a look at this :
dev C plus at 8-May-13 21:05pm
thanks for your post
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hence you have to write a DLL with functions able to parse XML files in order to return strings based on identifiers. It looks a pretty straightforward task to me, what is the problem?
dev C plus at 7-May-13 3:11am
hi CPallini.
i had wrote a dll to parse XML.
And i have list contain language to translate.
so, this problem is get id of dialog, controls...
because, my dll translate is started when found id of controls need to translate in XML files
i want user of my dll is not need to code for translate...
my dll is auto found that controls on dialog and to translate.
do you see me
CPallini at 7-May-13 3:15am
Well, is your multi language application's responsibility to provide such identifiers (on calling DLL functions).
dev C plus at 7-May-13 3:21am
so, user only need to call functions in DLL.
how to get all control on the dialog is showing ???
can set all of them to array???
or some another solution..
in .NET, i can... so, at here, it's to tired with me :(
CPallini at 7-May-13 3:55am
See , for instance
dev C plus at 7-May-13 5:07am
thanks your post!!!
so, i had found once solution.
thansk u so much
CPallini at 7-May-13 5:19am
You are welcome.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

i think i have found a solution for my problem...
Enumerate Controls In a Dialog Box or FormView[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 370
1 CHill60 250
2 Maciej Los 229
3 Richard MacCutchan 210
4 OriginalGriff 175
0 Sergey Alexandrovich Kryukov 365
1 CHill60 335
2 OriginalGriff 245
3 Andy Lanng 173
4 Richard MacCutchan 150

Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 7 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100