multilanguage DLL
-
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!!! :) from Raphaël
-
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!!! :) from Raphaël
Maybe you have already found a solution. If not search MSDN for Resource-only DLLs and check for samples using the function AfxSetResourceHandle. Hope it helps.
...Plug & Pray... X|
-
Maybe you have already found a solution. If not search MSDN for Resource-only DLLs and check for samples using the function AfxSetResourceHandle. Hope it helps.
...Plug & Pray... X|
-
Thanks for your reply... I've already found this solution... But thank you nevertheless...