Click here to Skip to main content
16,014,662 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC6 Debugger Problem Pin
Paul Farry7-Mar-03 11:33
professionalPaul Farry7-Mar-03 11:33 
GeneralSocket question Pin
Mazdak7-Mar-03 0:25
Mazdak7-Mar-03 0:25 
GeneralRe: Socket question Pin
User 66587-Mar-03 1:44
User 66587-Mar-03 1:44 
GeneralRe: Socket question Pin
Mazdak7-Mar-03 4:40
Mazdak7-Mar-03 4:40 
QuestionHow to Translate a program or how can i make a program Translateble Pin
whofmans7-Mar-03 0:17
whofmans7-Mar-03 0:17 
AnswerRe: How to Translate a program or how can i make a program Translateble Pin
wimel7-Mar-03 1:18
wimel7-Mar-03 1:18 
AnswerRe: How to Translate a program or how can i make a program Translateble Pin
Rage7-Mar-03 1:20
professionalRage7-Mar-03 1:20 
AnswerRe: How to Translate a program or how can i make a program Translateble Pin
Cedric Moonen7-Mar-03 2:52
Cedric Moonen7-Mar-03 2:52 
Another idea is to use a texte file of the following format:

01 "String1"
02 "String2"
03 "String3"
.... and so on for every string you need to be translated.

You create then a class that loads such a text file (you just have to specify the filename of the file to be loaded) and with a function that returns a string given an index (something like char* LanguageClass->GetString(int StringIndex) ).

So, for every string in your project, (for example MessageBox("String1") ), you specify instead: MessageBox(LanguageClass->GetString(1) ). For the controls (for the static textes, you must change the Id to a specific value), you use the SetWindowText function to change the text.

So, when you want to use another language you just have to specify another text file to be loaded. For example if you want to specify the language with the command line parameters, you construct your LanguageClass there and you specify wich language file has to be loaded.

Hope this helps !
AnswerThanks Pin
whofmans7-Mar-03 3:15
whofmans7-Mar-03 3:15 
GeneralRe: Thanks Pin
espelly7-Mar-03 4:01
espelly7-Mar-03 4:01 
GeneralRe: Thanks Pin
Ted Ferenc7-Mar-03 4:10
Ted Ferenc7-Mar-03 4:10 
AnswerRe: How to Translate a program or how can i make a program Translateble Pin
Abbas_Riazi7-Mar-03 18:35
professionalAbbas_Riazi7-Mar-03 18:35 
AnswerRe: How to Translate a program or how can i make a program Translateble Pin
Abbas_Riazi7-Mar-03 18:40
professionalAbbas_Riazi7-Mar-03 18:40 
GeneralFocus on Buttons missing using XP Pin
Sara Burns7-Mar-03 0:17
Sara Burns7-Mar-03 0:17 
GeneralRe: Focus on Buttons missing using XP Pin
Michael Dunn7-Mar-03 7:21
sitebuilderMichael Dunn7-Mar-03 7:21 
GeneralRe: Focus on Buttons missing using XP Pin
Anonymous7-Mar-03 11:50
Anonymous7-Mar-03 11:50 
QuestionIs there control or class for visual html editing? Pin
Yasen Georgiew6-Mar-03 23:15
Yasen Georgiew6-Mar-03 23:15 
AnswerRe: Is there control or class for visual html editing? Pin
Big Art7-Mar-03 7:18
Big Art7-Mar-03 7:18 
QuestionTab Control Back Color and Tab Color? Pin
anju6-Mar-03 21:49
anju6-Mar-03 21:49 
Generalcom port driver issues with different chipsets Pin
pcsiow6-Mar-03 20:08
pcsiow6-Mar-03 20:08 
GeneralQuestion about remote desktop share application development. Pin
George26-Mar-03 19:42
George26-Mar-03 19:42 
GeneralRe: Question about remote desktop share application development. Pin
benjymous7-Mar-03 0:08
benjymous7-Mar-03 0:08 
GeneralRe: Question about remote desktop share application development. Pin
George27-Mar-03 22:10
George27-Mar-03 22:10 
Generalmemory allocation Pin
Stewenson6-Mar-03 19:23
Stewenson6-Mar-03 19:23 
GeneralRe: memory allocation Pin
Chris Losinger7-Mar-03 3:44
professionalChris Losinger7-Mar-03 3:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.