Click here to Skip to main content
15,905,590 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: run at shutdown ... Pin
David Crow6-May-04 6:21
David Crow6-May-04 6:21 
GeneralRe: run at shutdown ... Pin
jmkhael5-May-04 6:45
jmkhael5-May-04 6:45 
GeneralRe: run at shutdown ... Pin
David Crow5-May-04 6:59
David Crow5-May-04 6:59 
GeneralRe: run at shutdown ... Pin
jmkhael5-May-04 7:15
jmkhael5-May-04 7:15 
GeneralRe: run at shutdown ... Pin
David Crow5-May-04 7:32
David Crow5-May-04 7:32 
GeneralRe: run at shutdown ... Pin
jmkhael5-May-04 7:39
jmkhael5-May-04 7:39 
GeneralRe: run at shutdown ... Pin
toxcct6-May-04 6:46
toxcct6-May-04 6:46 
GeneralAdding multilanguage support Pin
Raphael Kindt5-May-04 4:59
Raphael Kindt5-May-04 4:59 
Hi world...

What is the most useful way to change language in an application?
I've read we can do that with explicit link for DLL (one DLL for each languages ressource). Example:
- exported from french.dll file:
extern "C" __declspec(dllexport) char* get_text(int id_text);

- int the application:
typedef char* (MY_FUNCTION)(int);
HINSTANCE hInstance;
MY_FUNCTION *pFunction;
VERIFY(hInstance = ::Loadlibrary("c:\\winnt\\system32\\french.dll"));
VERIFY(pFunction = (MY_FUNCTION*) ::GetProcAddress(hInstance, "get_text"));

int id_text = 5427
char* good_translation = (pFunction*)(id_text);

Is that a good solution?

Thanks for your suggestions...


Hello World!!! Smile | :)
from Raphaël
GeneralRe: Adding multilanguage support Pin
Alexander M.,5-May-04 5:01
Alexander M.,5-May-04 5:01 
GeneralDrawing anti alias Lines and Curves Pin
Crercio O. Silva5-May-04 4:42
Crercio O. Silva5-May-04 4:42 
GeneralRe: Drawing anti alias Lines and Curves Pin
Alexander M.,5-May-04 4:47
Alexander M.,5-May-04 4:47 
GeneralRe: Drawing anti alias Lines and Curves Pin
RChin5-May-04 5:37
RChin5-May-04 5:37 
GeneralPostMessage Pin
ykutanoor5-May-04 4:32
ykutanoor5-May-04 4:32 
GeneralRe: PostMessage Pin
Shay Harel5-May-04 4:42
Shay Harel5-May-04 4:42 
GeneralUpdating Dialog from a thread Pin
Shay Harel5-May-04 4:23
Shay Harel5-May-04 4:23 
GeneralRe: Updating Dialog from a thread Pin
jmkhael5-May-04 4:43
jmkhael5-May-04 4:43 
GeneralRe: Updating Dialog from a thread Pin
2249175-May-04 4:44
2249175-May-04 4:44 
GeneralRe: Updating Dialog from a thread Pin
RChin5-May-04 4:55
RChin5-May-04 4:55 
GeneralIcon Collection Pin
Rafael Fernández López5-May-04 4:10
Rafael Fernández López5-May-04 4:10 
GeneralRe: Icon Collection Pin
Anonymous5-May-04 4:27
Anonymous5-May-04 4:27 
GeneralRe: Icon Collection Pin
grigsoft5-May-04 5:37
grigsoft5-May-04 5:37 
GeneralRe: Icon Collection Pin
David Crow5-May-04 5:41
David Crow5-May-04 5:41 
QuestionHow many times DLL loaded for different Application? Pin
hasansheik5-May-04 3:07
hasansheik5-May-04 3:07 
AnswerRe: How many times DLL loaded for different Application? Pin
John M. Drescher5-May-04 3:18
John M. Drescher5-May-04 3:18 
GeneralRe: How many times DLL loaded for different Application? Pin
hasansheik5-May-04 3:26
hasansheik5-May-04 3:26 

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.