Re: resource dll problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Adamus,

When you create the separate bitmaps did you make sure that the resources
links in the .RC file point to the different bitmaps/icons/cursors/whatever
files in the various languages? If you just copy the original file and
translate it the resource files will still be in the same place.

FWIW, I have the same IDs in all of my resource DLLs and the main program
finds them after I do the LoadLibrary() and AfxSetResourceHandle() calls.
Although, to be honest we use mostly the same icons for all languages.

Tom

You could try opening the DLL"adamus" <ss@xxxxxxxxx> wrote in message
news:e4%23i%23ntGHHA.2632@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have application whci load different resource dll depending on language
selected.
Everything works ok when I want to display resource like image etc in main
program,
but when I main program call dialog box, images in that dialog are not
taken from new
resource dll but from main application(in main program). In that dialog
box I have different
images for different languages in separate dlls. Stange thing though, text
from resource string
are taken properly from loaded dll.
What can cause that problem?
thanks



.



Relevant Pages

  • Re: Common Resource in multiple applications
    ... keep the resources ids from overlapping? ... I have a resource DLL for resources used by more than one program. ... ID's which are not needed outside the resource DLL are therefore not a problem - they are not needed outside the DLL. ...
    (microsoft.public.vc.mfc)
  • Re: resource dll questions
    ... If you are copying the resource DLL ... If you don't specify a path to your resource DLL, Cluster Server will search ... > then copying the resource dll - clipbook server.dll. ...
    (microsoft.public.windows.server.clustering)
  • Re: FindResource not working as expected
    ... in any case, I am working on an MFC application, and I have a resource DLL that has copies of all of the application's dialogs in it. ... And under certain conditions I want to load the resource from the EXE and other times from the DLL. ... When the application is initializing, I check the conditions, and then if necessary I call LoadLibrary with the path to the resource DLL. ... If it is valid, then I call FindResource, passing it the handle and the dialog resource that I need... ...
    (microsoft.public.win32.programmer.kernel)
  • Re: a dedicated resource dll
    ... Now add your resource file to this dll. ... Now your main application should load the the resource dll and use ...
    (microsoft.public.vc.mfc)
  • Re: resource dll questions
    ... then copying the resource dll - clipbook server.dll. ... When I try bring the resource online(via Cluster administrator) I get ...
    (microsoft.public.windows.server.clustering)