How to make Localisation .dll for my product
-
Hi All, How to make Localised .dll for my project. I want to a separate .dll for Localisation. It will be loaded during application initialisation. Waiting for your positive response. Regards Patra
-
Hi All, How to make Localised .dll for my project. I want to a separate .dll for Localisation. It will be loaded during application initialisation. Waiting for your positive response. Regards Patra
You create an empty DLL, copy all the resources of the original project to it. Translate and compile. In the application app-class
InitInstance
, callAfxLoadLibrary
to load the DLL. Save the return value in aHINSTANCE
member of the class. CallAfxSetResourceHandle
with thisHINSTANCE
to use the localized DLL. Finally, inExitInstance
, callAfxFreeLibrary
with theHINSTANCE
. -
You create an empty DLL, copy all the resources of the original project to it. Translate and compile. In the application app-class
InitInstance
, callAfxLoadLibrary
to load the DLL. Save the return value in aHINSTANCE
member of the class. CallAfxSetResourceHandle
with thisHINSTANCE
to use the localized DLL. Finally, inExitInstance
, callAfxFreeLibrary
with theHINSTANCE
.Thank you very much.....
-
Hi All, How to make Localised .dll for my project. I want to a separate .dll for Localisation. It will be loaded during application initialisation. Waiting for your positive response. Regards Patra
Take a look at SmartTrans. It works well for single exe projects. It will take your .EXE and using a glossary you supply (english to other language), will create a new EXE with all the resources translated. I've written an update to handle multiple dll projects, but not submitted it yet. Basically it will scan all the sub projects and create a single resource DLL with all the translated resources. Then you load this DLL when necessary.