Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Overlapped Connect Pin
valikac14-Jan-04 16:21
valikac14-Jan-04 16:21 
GeneralRe: Overlapped Connect Pin
JT Anderson15-Jan-04 4:12
JT Anderson15-Jan-04 4:12 
GeneralRe: Overlapped Connect Pin
valikac15-Jan-04 11:30
valikac15-Jan-04 11:30 
GeneralRe: Overlapped Connect Pin
JT Anderson15-Jan-04 11:48
JT Anderson15-Jan-04 11:48 
Generalexecute a binary resource without first saving it to disk Pin
Diddy14-Jan-04 11:12
Diddy14-Jan-04 11:12 
GeneralRe: execute a binary resource without first saving it to disk Pin
valikac14-Jan-04 16:29
valikac14-Jan-04 16:29 
GeneralRe: execute a binary resource without first saving it to disk Pin
Diddy14-Jan-04 22:09
Diddy14-Jan-04 22:09 
Generalmultiple languages w/o separate builds Pin
KeyserSoze0014-Jan-04 10:00
KeyserSoze0014-Jan-04 10:00 
I need to support about 18 languages in my application. It must run on 98, NT, and above. The powers that be will not allow me to use multiple build targets/configurations, or have several language dlls lying around. It must detect the regional language setting at startup, then load the correct resources. In other words, one build is shipped for 18 languages.

Ok, so far, I know that I can house multi-language resources in a single external dll, even my own executable. I know how to detect the current user's regional language settings using GetUserDefaultLCID(). I discovered that others have used SetThreadLocale() to switch what language resources get used, but then I looked it up in MSDN and read that one should not use this function, and instead should use FindResourceEx().

So, given that I cannot have multiple build targets, cannot have multiple language dlls lying around, and cannot use SetThreadLocale(), it seems I'm left with one option: FindResourceEx(). I must dynamically load every string, dialog, control, bitmap, etc. at startup. For about 34 dialogs, in 18 languages... 612 dialogs. With roughly 4 string resources or other controls on each. 2448 individual items. No, I can't just localize the strings. The dialogs may change size from language to language, as can the controls.

Please, please, please tell me there is another method than FindResourceEx()! Dead | X|

I've dabbled with the idea of having each resource duplicated for each language, but with a resource id offsetted a fixed amount. In other words, after detecting the language, I can calculate the resource id offset, then construct my pages with something like myPropPage.Construct(IDD_DIALOG1+offset). Though I'm not sure if this would be any easier.

Also, I'm concerned about displaying asian character sets. Will I have to manually change the code page somehow before loading resources?

Any words of advice would be greatly appreciated!
GeneralRe: multiple languages w/o separate builds Pin
l a u r e n14-Jan-04 10:05
l a u r e n14-Jan-04 10:05 
QuestionWhere can I learn DevStudio? Pin
BrockVnm14-Jan-04 9:40
BrockVnm14-Jan-04 9:40 
AnswerRe: Where can I learn DevStudio? Pin
l a u r e n14-Jan-04 9:45
l a u r e n14-Jan-04 9:45 
GeneralRe: Where can I learn DevStudio? Pin
BrockVnm14-Jan-04 9:59
BrockVnm14-Jan-04 9:59 
GeneralRe: Where can I learn DevStudio? Pin
l a u r e n14-Jan-04 10:01
l a u r e n14-Jan-04 10:01 
GeneralRe: Where can I learn DevStudio? Pin
BrockVnm14-Jan-04 10:12
BrockVnm14-Jan-04 10:12 
GeneralRe: Where can I learn DevStudio? Pin
l a u r e n14-Jan-04 10:14
l a u r e n14-Jan-04 10:14 
GeneralPrinting on XP or 2000 Pin
kdmc14-Jan-04 8:50
kdmc14-Jan-04 8:50 
GeneralProblem using separate types linker option Pin
Dave Bryant14-Jan-04 7:15
Dave Bryant14-Jan-04 7:15 
GeneralRe: Problem using separate types linker option Pin
Michael Geddes14-Jan-04 12:26
Michael Geddes14-Jan-04 12:26 
QuestionProgramatically interrogating a C/C++ enumeration? Pin
Gary Chapman14-Jan-04 6:33
Gary Chapman14-Jan-04 6:33 
AnswerRe: Programatically interrogating a C/C++ enumeration? Pin
Antti Keskinen14-Jan-04 8:16
Antti Keskinen14-Jan-04 8:16 
GeneralRe: Programatically interrogating a C/C++ enumeration? Pin
Jörgen Sigvardsson14-Jan-04 8:34
Jörgen Sigvardsson14-Jan-04 8:34 
AnswerRe: Programatically interrogating a C/C++ enumeration? Pin
Christian Graus14-Jan-04 12:00
protectorChristian Graus14-Jan-04 12:00 
AnswerRe: Programatically interrogating a C/C++ enumeration? Pin
Michael Geddes14-Jan-04 12:18
Michael Geddes14-Jan-04 12:18 
AnswerRe: Programatically interrogating a C/C++ enumeration? Pin
Gary R. Wheeler14-Jan-04 12:47
Gary R. Wheeler14-Jan-04 12:47 
GeneralOpenPrinter Pin
Member 81460314-Jan-04 5:53
Member 81460314-Jan-04 5:53 

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.