Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Comments
Maximilien 7-May-13 11:13am    
have a look at this : http://support.microsoft.com/kb/198846
dev C plus 8-May-13 21:05pm    
thanks for your post

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?
 
Share this answer
 
Comments
dev C plus 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 7-May-13 3:15am    
Well, is your multi language application's responsibility to provide such identifiers (on calling DLL functions).
dev C plus 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 7-May-13 3:55am    
See , for instance
http://vcpptips.wordpress.com/tag/get-all-the-child-controls-of-a-window/
dev C plus 7-May-13 5:07am    
thanks your post!!!
so, i had found once solution.
thansk u so much
i think i have found a solution for my problem...
Enumerate Controls In a Dialog Box or FormView[^]
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900