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. Multiple string table using Resource DLL

Multiple string table using Resource DLL

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionlearning
6 Posts 2 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.
  • P Offline
    P Offline
    ParagPatel
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • P ParagPatel

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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.

      P 1 Reply Last reply
      0
      • L Lost User

        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.

        P Offline
        P Offline
        ParagPatel
        wrote on last edited by
        #3

        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

        L 1 Reply Last reply
        0
        • P ParagPatel

          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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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.

          P 1 Reply Last reply
          0
          • L Lost User

            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.

            P Offline
            P Offline
            ParagPatel
            wrote on last edited by
            #5

            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

            L 1 Reply Last reply
            0
            • P ParagPatel

              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

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              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.

              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