Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to make Localisation .dll for my product

How to make Localisation .dll for my product

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gopabandhu
    wrote on last edited by
    #1

    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

    J S 2 Replies Last reply
    0
    • G Gopabandhu

      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

      J Offline
      J Offline
      Johan Rosengren
      wrote on last edited by
      #2

      You create an empty DLL, copy all the resources of the original project to it. Translate and compile. In the application app-class InitInstance, call AfxLoadLibrary to load the DLL. Save the return value in a HINSTANCE member of the class. Call AfxSetResourceHandle with this HINSTANCE to use the localized DLL. Finally, in ExitInstance, call AfxFreeLibrary with the HINSTANCE.

      G 1 Reply Last reply
      0
      • J Johan Rosengren

        You create an empty DLL, copy all the resources of the original project to it. Translate and compile. In the application app-class InitInstance, call AfxLoadLibrary to load the DLL. Save the return value in a HINSTANCE member of the class. Call AfxSetResourceHandle with this HINSTANCE to use the localized DLL. Finally, in ExitInstance, call AfxFreeLibrary with the HINSTANCE.

        G Offline
        G Offline
        Gopabandhu
        wrote on last edited by
        #3

        Thank you very much.....

        1 Reply Last reply
        0
        • G Gopabandhu

          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

          S Offline
          S Offline
          soundman32
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups