Click here to Skip to main content
Rate this: bad
good
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 22:00pm
Comments
Maximilien at 7-May-13 11:13am
   
have a look at this : http://support.microsoft.com/kb/198846
dev C plus at 8-May-13 21:05pm
   
thanks for your post
Rate this: bad
good
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?
  Permalink  
Comments
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
http://vcpptips.wordpress.com/tag/get-all-the-child-controls-of-a-window/
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
good
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[^]
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,192
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 7 May 2013
Copyright © CodeProject, 1999-2014
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