Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VS.NET keeps renaming resources !!! Pin
Christian Graus3-Mar-05 15:18
protectorChristian Graus3-Mar-05 15:18 
GeneralSaving several documents Pin
joy0073-Mar-05 14:30
joy0073-Mar-05 14:30 
GeneralDouble right click Pin
joy0073-Mar-05 14:21
joy0073-Mar-05 14:21 
GeneralRe: Double right click Pin
zhang8006053-Mar-05 14:49
zhang8006053-Mar-05 14:49 
Generaltemplate issues Pin
act_x3-Mar-05 11:19
act_x3-Mar-05 11:19 
GeneralRe: template issues Pin
Michael Dunn3-Mar-05 11:39
sitebuilderMichael Dunn3-Mar-05 11:39 
GeneralRe: template issues Pin
Christian Graus3-Mar-05 11:43
protectorChristian Graus3-Mar-05 11:43 
Generallocalization of .RCs Pin
rastompk3-Mar-05 9:18
rastompk3-Mar-05 9:18 
Hi all,
I'm thinking how to do a localization of dialogs of quite a big MFC project in VS6. I was searching msdn and also this message board, but I did not find exactly what I was looking for.

Here is the situation:
I did extract more than thousand of strings from the dialogs that I need to translate. I made nice .h file like this:
...
#define IDL_1 "string_one"
#define IDL_2 "string_two"
...
Then I did put these IDL_xxx instead of strings into .rc files. Everything went fine until I made a change to some dialog. When I made a change in the dialog (eg. I changed caption of a window and saved the dialog), VS then replaced all my IDL_xxx in the .rc file with strings from my .h file (this file contains all my strings). So if I make a change to this .h file that change will no longer reflect in this .rc file and I have to extract strings from this .rc file again and put those IDL_xxx back again and so on.

So instead of
...
LTEXT IDL_23, IDC_STATIC,128,
...
VS did put string:
...
LTEXT "Number of inputs:",IDC_STATIC,128,
...
Is there some way how to prevent VS doing this ? (because it is not a problem if VS changed just the string I edited, but the problem is that VS6 did replace all my IDL_xxx in the whole .rc file)

Or is there any way how to do it some other way? Imagine you have a file with strings and you want to put this strings into dialogs (.rc files)

My idea was to use one file for one language and one for the other one. So I made one file lang_eng.h and lang_cz.h and one file lang_select.h where I choose which language I want to use for compilation using #ifdef etc.

I also read something about string tables but I didn't find a way how to connect this strings from string tables to my dialogs.

Any ideas?
rasto
GeneralRe: localization of .RCs Pin
Chris Losinger3-Mar-05 10:22
professionalChris Losinger3-Mar-05 10:22 
GeneralRe: localization of .RCs Pin
rastompk4-Mar-05 5:31
rastompk4-Mar-05 5:31 
GeneralRe: localization of .RCs Pin
Chris Losinger4-Mar-05 6:29
professionalChris Losinger4-Mar-05 6:29 
GeneralRe: localization of .RCs Pin
rastompk7-Mar-05 11:09
rastompk7-Mar-05 11:09 
GeneralRendering client's mouse and keyboard events Pin
harshi3-Mar-05 8:37
harshi3-Mar-05 8:37 
GeneralRe: Rendering client's mouse and keyboard events Pin
Ravi Bhavnani3-Mar-05 9:42
professionalRavi Bhavnani3-Mar-05 9:42 
Generalcheck if cd is burning a disc Pin
sstoyan3-Mar-05 7:53
sstoyan3-Mar-05 7:53 
GeneralRe: check if cd is burning a disc Pin
Anand for every one3-Mar-05 19:10
Anand for every one3-Mar-05 19:10 
GeneralRe: check if cd is burning a disc Pin
sstoyan5-Mar-05 0:02
sstoyan5-Mar-05 0:02 
GeneralControlling media playback using windows media sdk Pin
Nikhil Wason3-Mar-05 7:49
Nikhil Wason3-Mar-05 7:49 
GeneralStandard Template Library Pin
DR19423-Mar-05 7:26
DR19423-Mar-05 7:26 
GeneralRe: Standard Template Library Pin
Chris Losinger3-Mar-05 10:12
professionalChris Losinger3-Mar-05 10:12 
GeneralRe: Standard Template Library Pin
DR19423-Mar-05 11:35
DR19423-Mar-05 11:35 
GeneralScanning & extracting from CString Pin
José Luis Sogorb3-Mar-05 6:50
José Luis Sogorb3-Mar-05 6:50 
GeneralRe: Scanning & extracting from CString Pin
David Crow3-Mar-05 7:50
David Crow3-Mar-05 7:50 
GeneralRe: Scanning & extracting from CString Pin
Blake Miller3-Mar-05 11:08
Blake Miller3-Mar-05 11:08 
GeneralRe: Scanning & extracting from CString Pin
José Luis Sogorb3-Mar-05 21:22
José Luis Sogorb3-Mar-05 21:22 

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.