|
-
August 13th, 2001, 03:32 PM
#1
How to change resource handle?
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|