Click here to Skip to main content
16,005,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondataset / datagrid in visual C++ 6 Pin
viperlogic22-Mar-06 12:20
viperlogic22-Mar-06 12:20 
AnswerRe: dataset / datagrid in visual C++ 6 Pin
Christian Graus22-Mar-06 13:45
protectorChristian Graus22-Mar-06 13:45 
AnswerRe: dataset / datagrid in visual C++ 6 Pin
Eytukan22-Mar-06 20:48
Eytukan22-Mar-06 20:48 
JokeRe: dataset / datagrid in visual C++ 6 Pin
toxcct22-Mar-06 21:18
toxcct22-Mar-06 21:18 
AnswerRe: dataset / datagrid in visual C++ 6 Pin
toxcct22-Mar-06 22:52
toxcct22-Mar-06 22:52 
GeneralRe: dataset / datagrid in visual C++ 6 Pin
viperlogic23-Mar-06 0:17
viperlogic23-Mar-06 0:17 
GeneralRe: dataset / datagrid in visual C++ 6 Pin
toxcct23-Mar-06 1:51
toxcct23-Mar-06 1:51 
QuestionSetThreadLocale Pin
SanShou22-Mar-06 12:04
SanShou22-Mar-06 12:04 
I am developing an application that is available in multiple languages.

Currently we set the UI language for the application using an installer which means that you can run in German on any language OS. However there is one problem and that is with Microsoft dialogs and wizards. They seem to want to load the resources based on the current locale.

An example is: OS is English, Locale is France, and you install German application. This results in French resources being used for property sheets while German is used everywhere else.

There are two ways that I have found to stop this. One was to create a seperate DLL for each language. However the company I was hired to do localization work for seems to still be in afterthought mode and there is too much resistance for this. Not to mention if I had unlimited time to really do localization right there are many problems to fix.

The second way was to call SetThreadLocale(). This loads the wizards correctly, however I keep seeing that SetThreadLocale() is a bad function and should never be used. Is this true?

We already use our own version printf() to allow different non-standard tokens to be used in strings. So I also overwrote this so the use of formatting numbers, dates, and other localization settings is already preserved based on user locale.

I just wanted to make sure I would or wouldn't be making a huge mistake using SetThreadLocale because I didn't know all the reasons it has been blacklisted.

Thanks

If you start a fire for a man, he will be warm for a day. If you start that same man on fire, he will be warm for the rest of his life.
AnswerRe: SetThreadLocale Pin
MF22-Mar-06 15:59
MF22-Mar-06 15:59 
Questiondisplaying pictures Pin
Amr Shahin22-Mar-06 11:25
Amr Shahin22-Mar-06 11:25 
AnswerRe: displaying pictures Pin
Christian Graus22-Mar-06 11:41
protectorChristian Graus22-Mar-06 11:41 
GeneralRe: displaying pictures Pin
Waldermort22-Mar-06 13:54
Waldermort22-Mar-06 13:54 
AnswerRe: displaying pictures Pin
Hamid_RT22-Mar-06 17:39
Hamid_RT22-Mar-06 17:39 
Questioncode to run sample.exe program? Pin
Yonggoo22-Mar-06 10:56
Yonggoo22-Mar-06 10:56 
AnswerRe: code to run sample.exe program? Pin
Michael Dunn22-Mar-06 11:22
sitebuilderMichael Dunn22-Mar-06 11:22 
AnswerRe: code to run sample.exe program? Pin
Hamid_RT22-Mar-06 17:32
Hamid_RT22-Mar-06 17:32 
AnswerRe: code to run sample.exe program? Pin
_AnsHUMAN_ 22-Mar-06 20:45
_AnsHUMAN_ 22-Mar-06 20:45 
QuestionError spawning 'cmd.exe' Pin
Tugbay Sahin22-Mar-06 10:50
Tugbay Sahin22-Mar-06 10:50 
QuestionCan not open Database Connection using CDatabase Pin
nhuythanh22-Mar-06 10:42
nhuythanh22-Mar-06 10:42 
QuestionIncrementing enums Pin
hint_5422-Mar-06 10:10
hint_5422-Mar-06 10:10 
AnswerRe: Incrementing enums Pin
valikac22-Mar-06 10:39
valikac22-Mar-06 10:39 
AnswerRe: Incrementing enums Pin
Bob Flynn22-Mar-06 10:45
Bob Flynn22-Mar-06 10:45 
GeneralRe: Incrementing enums Pin
hint_5423-Mar-06 4:17
hint_5423-Mar-06 4:17 
AnswerRe: Incrementing enums Pin
Aqueel22-Mar-06 17:16
Aqueel22-Mar-06 17:16 
GeneralRe: Incrementing enums Pin
hint_5423-Mar-06 4:20
hint_5423-Mar-06 4:20 

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.