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

C / C++ / MFC

 
GeneralRe: Monitor event in another windows app? Pin
jmkhael5-May-04 5:12
jmkhael5-May-04 5:12 
GeneralConfiguration Files Pin
Poljack4-May-04 21:40
Poljack4-May-04 21:40 
Generalerror in getprotobyname Pin
Juan Antonio Bermejo4-May-04 21:36
Juan Antonio Bermejo4-May-04 21:36 
GeneralRe: error in getprotobyname Pin
Mike Dimmick4-May-04 23:27
Mike Dimmick4-May-04 23:27 
GeneralRe: error in getprotobyname Pin
Juan Antonio Bermejo4-May-04 23:48
Juan Antonio Bermejo4-May-04 23:48 
GeneralRe: error in getprotobyname Pin
Juan Antonio Bermejo4-May-04 23:52
Juan Antonio Bermejo4-May-04 23:52 
GeneralRe: error in getprotobyname Pin
Mike Dimmick5-May-04 12:24
Mike Dimmick5-May-04 12:24 
Generalmultilanguage DLL Pin
Raphael Kindt4-May-04 21:27
Raphael Kindt4-May-04 21:27 
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"));

char* good_language = (pFunction*)(1054);

Is that a good solution?

Thanks for your suggestions...

Hello World!!! Smile | :)
from Raphaël
GeneralRe: multilanguage DLL Pin
Dimitris Vasiliadis24-May-04 12:02
Dimitris Vasiliadis24-May-04 12:02 
GeneralRe: multilanguage DLL Pin
Anonymous25-May-04 7:22
Anonymous25-May-04 7:22 
GeneralRe: multilanguage DLL Pin
Anouarzha1-Dec-09 23:30
Anouarzha1-Dec-09 23:30 
QuestionWindows 2K or Windows XP ? Pin
joconno44-May-04 21:08
joconno44-May-04 21:08 
AnswerRe: Windows 2K or Windows XP ? Pin
Henrik Stuart4-May-04 21:22
Henrik Stuart4-May-04 21:22 
QuestionMultiThreading Synchronization prob? Pin
mohit98144-May-04 20:39
mohit98144-May-04 20:39 
AnswerRe: MultiThreading Synchronization prob? Pin
Madmaximus5-May-04 4:53
Madmaximus5-May-04 4:53 
Generalopeninng a word file in own Active X control Pin
Abhi Lahare4-May-04 20:21
Abhi Lahare4-May-04 20:21 
Questionhow to create a horizontal bar which shows percentages in three different colors Pin
swarnamanoo4-May-04 20:04
swarnamanoo4-May-04 20:04 
GeneralTab order of controls Pin
GDavy4-May-04 19:31
GDavy4-May-04 19:31 
GeneralRe: Tab order of controls Pin
Joe Woodbury4-May-04 19:46
professionalJoe Woodbury4-May-04 19:46 
GeneralRe: Tab order of controls Pin
Maxwell Chen4-May-04 19:54
Maxwell Chen4-May-04 19:54 
GeneralRe: Tab order of controls Pin
GDavy4-May-04 20:02
GDavy4-May-04 20:02 
GeneralPublic Variable Attn M Bhavani Pin
Krugger4044-May-04 19:31
Krugger4044-May-04 19:31 
GeneralRe: Public Variable Attn M Bhavani Pin
Maxwell Chen4-May-04 19:35
Maxwell Chen4-May-04 19:35 
GeneralRe: Public Variable Attn M Bhavani Pin
GDavy4-May-04 19:36
GDavy4-May-04 19:36 
Questionhow to make a CListCtrl in report-mode without Columns ? Pin
ohadp4-May-04 19:26
ohadp4-May-04 19: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.