Re: resource dll problem



Hi,
but when I change resource for main program it does work that way.
Only seems to be a problem with new instance of e.g dialog.

BTW satelite dlls work that way you do use same IDs.
I read in MSDN about that.

"Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote in message
news:u9iqAvtGHHA.924@xxxxxxxxxxxxxxxxxxxxxxx
Why should you have the same resource IDs in the main program and a DLL?
These IDs shoudl all be distinct or you need to explicitly ask for
resources
from a specific DLL. We used multiple resource DLLs, all with distinct
resoruce IDs and put these in a resource chain using CDynLinkLibrary.

--
Ajay Kalra [MVP - VC++]
ajaykalra@xxxxxxxxx


"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: internationalisation
    ... So, for dialogs, we keep all of a projects dialogs in the exe rather than ... separate copies in each language dll. ... It shows you how to build dialogs without resource files. ...
    (microsoft.public.vc.mfc)
  • Re: ? Segregating a Dialogs Code (Particularly Resources)
    ... I typically put all of the common code in a single Dll, ... the projects that need access to the common code. ... Now the problem with my solution is that if one control, ... both resource files and drag the resources over to the new project. ...
    (microsoft.public.vc.mfc)
  • Re: multi-process singleton DLL
    ... creates an IPC server and manages the DLL resource. ... They both interface using this DLL I wrote to take care ... communicate with the IPC server, ... could bind to the protocol driver, the other would get "The requested ...
    (microsoft.public.vc.language)
  • Re: How to write a program with multi-language support but not needed to define "UNICOE"?
    ... Put each resource file with different langauge in different dll. ... standpoint of providing UI in multiple languages, ...
    (microsoft.public.vc.mfc)
  • Re: multi-process singleton DLL
    ... creates an IPC server and manages the DLL resource. ... They both interface using this DLL I wrote to take care ... communicate with the IPC server, ... procedure of opening the protocol driver and binding to it. ...
    (microsoft.public.vc.language)

Loading