How to change resource of exported class from a DLL?
-
Hi All I developed a MFC extension dll which has English resources in it. I want to incorporate French resource to this dll. I am using this dll in my main application. The resources loading from this dll should be controlled programatically. (ie, In English OS it should load French resource or vice versa) I have come across the following code /***********/ HINSTANCE = LoadLibrary("MyDll"); AxSetResourceHandle(hinstance); /***********/ But It is not working in dlls (Inside DllMain()). How can I do it dlls? regards Jafi.
-
Hi All I developed a MFC extension dll which has English resources in it. I want to incorporate French resource to this dll. I am using this dll in my main application. The resources loading from this dll should be controlled programatically. (ie, In English OS it should load French resource or vice versa) I have come across the following code /***********/ HINSTANCE = LoadLibrary("MyDll"); AxSetResourceHandle(hinstance); /***********/ But It is not working in dlls (Inside DllMain()). How can I do it dlls? regards Jafi.
You can't do much from
DllMain()
, and you certainly can't load other DLLs. Read the docs onDllMain()
, they describe the restrictions. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Magnae clunes mihi placent, nec possum de hac re mentiri.