XKent
August 13th, 2001, 03:32 PM
I writing programm where user can change interface languge during run-time.
So, I have few Dll’s containing resources (string tables) in differrent languages;
Then I loading one of them (depending on user choise) using API function LoadLibrary.
This all is O.K. but how I can set resource handle to loaded Dll? I mean I want LoadResString() to give me a string from Dll not from main app exe. But I don’t want to declare in each Dll function MyLoadResString and then using it.
P.S.
In C/MFC this problem solved easily with such code:
HINSTANCE hDll = LoadLibrary(“some.dll”);
AfxSetResourceHandle(hDll);
Could someone help me?
So, I have few Dll’s containing resources (string tables) in differrent languages;
Then I loading one of them (depending on user choise) using API function LoadLibrary.
This all is O.K. but how I can set resource handle to loaded Dll? I mean I want LoadResString() to give me a string from Dll not from main app exe. But I don’t want to declare in each Dll function MyLoadResString and then using it.
P.S.
In C/MFC this problem solved easily with such code:
HINSTANCE hDll = LoadLibrary(“some.dll”);
AfxSetResourceHandle(hDll);
Could someone help me?