Multiple string table using Resource DLL
-
Hello, I am developing multilingual MFC application. My application has very heavy GUI, and I want to create resource DLL for each language, which my application load at run time when needed. So I want to make resource DLL for application per language which just contain "string table" nothing else, and remaining resource should use from application default resource. Basic requirement: 1) Don't want to redundant Image, Dialog and Menus in each resource DLL. Can anyone suggest way for same?
Parag Patel Sr. Software Eng, Varaha Systems
-
Hello, I am developing multilingual MFC application. My application has very heavy GUI, and I want to create resource DLL for each language, which my application load at run time when needed. So I want to make resource DLL for application per language which just contain "string table" nothing else, and remaining resource should use from application default resource. Basic requirement: 1) Don't want to redundant Image, Dialog and Menus in each resource DLL. Can anyone suggest way for same?
Parag Patel Sr. Software Eng, Varaha Systems
-
ParagPatel wrote:
Don't want to redundant Image, Dialog and Menus in each resource DLL.
You just need to create a resource set comprising strings only. If there are any other auto-generated items they can be deleted.
Thanks Richard, But I want to in a way so I no need to do any compilation and code change to support new language. Thats way i was preferring separate resource DLL. What is your view/solution?
Parag Patel Sr. Software Eng, Varaha Systems
-
Thanks Richard, But I want to in a way so I no need to do any compilation and code change to support new language. Thats way i was preferring separate resource DLL. What is your view/solution?
Parag Patel Sr. Software Eng, Varaha Systems
ParagPatel wrote:
Thats way i was preferring separate resource DLL.
That's what I was suggesting; create a DLL composed of all the string table resources and a simple function to return the relevant string table according to the language selected by the caller.
-
ParagPatel wrote:
Thats way i was preferring separate resource DLL.
That's what I was suggesting; create a DLL composed of all the string table resources and a simple function to return the relevant string table according to the language selected by the caller.
Yes same I want to do, MFC provide API to load resource "SetResourceInstance", but I am confuge here that how can i set tow resource instance. one for default resource instance (Dialog, Image etc) and second for string table? Thanks
Parag Patel Sr. Software Eng, Varaha Systems
-
Yes same I want to do, MFC provide API to load resource "SetResourceInstance", but I am confuge here that how can i set tow resource instance. one for default resource instance (Dialog, Image etc) and second for string table? Thanks
Parag Patel Sr. Software Eng, Varaha Systems
ParagPatel wrote:
MFC provide API to load resource "SetResourceInstance"
I cannot find the MFC reference, only the one pertaining to ATL, which I have no experience of. I think you may need to look at how you access the resources, and whether to use pure Win32 to access them through the DLL.