Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Data Verification problem Pin
Michael P Butler5-May-04 1:44
Michael P Butler5-May-04 1:44 
GeneralRe: Data Verification problem Pin
hasansheik5-May-04 2:32
hasansheik5-May-04 2:32 
GeneralBrowse For Folder settings - help required Pin
nihal_kashinath5-May-04 0:43
nihal_kashinath5-May-04 0:43 
Generalsocket Pin
Ni@m5-May-04 0:42
Ni@m5-May-04 0:42 
GeneralRe: socket Pin
toxcct5-May-04 1:41
toxcct5-May-04 1:41 
GeneralRe: socket Pin
Alexander M.,5-May-04 4:52
Alexander M.,5-May-04 4:52 
GeneralURGENT : Need help on WMV3. Pin
haust5-May-04 0:05
haust5-May-04 0:05 
GeneralRe: URGENT : Need help on WMV3. Pin
Mike Dimmick5-May-04 2:29
Mike Dimmick5-May-04 2:29 
GeneralRe: URGENT : Need help on WMV3. Pin
haust5-May-04 5:39
haust5-May-04 5:39 
GeneralProblem with CShadeButtonST Pin
Tran Thanh Binh4-May-04 23:32
Tran Thanh Binh4-May-04 23:32 
Generalstreambuf Pin
Member 10128694-May-04 22:26
Member 10128694-May-04 22:26 
GeneralRe: streambuf Pin
Mike Dimmick4-May-04 23:20
Mike Dimmick4-May-04 23:20 
QuestionMonitor event in another windows app? Pin
Member 10749994-May-04 22:18
Member 10749994-May-04 22:18 
AnswerRe: Monitor event in another windows app? Pin
Member 10749994-May-04 23:44
Member 10749994-May-04 23:44 
GeneralRe: Monitor event in another windows app? Pin
jmkhael5-May-04 0:03
jmkhael5-May-04 0:03 
GeneralRe: Monitor event in another windows app? Pin
Member 10749995-May-04 4:34
Member 10749995-May-04 4:34 
GeneralRe: Monitor event in another windows app? Pin
Member 10749995-May-04 5:07
Member 10749995-May-04 5:07 
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

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.