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 can I select direct StringTable to load on to dialog interface

How can I select direct StringTable to load on to dialog interface

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 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.
  • D Offline
    D Offline
    dungpapai
    wrote on last edited by
    #1

    In my program, I have 2 string table (1 string table is French, 1 is English). Texts of dialogs are loaded from string table. When I select French, my program will load French string table in to dialogs interface (texts of dialogs are French) and when I select English interface, it will load remaining string table (English String Table) - Texts of dialogs are English. How can I do it?

    Papais

    R H 2 Replies Last reply
    0
    • D dungpapai

      In my program, I have 2 string table (1 string table is French, 1 is English). Texts of dialogs are loaded from string table. When I select French, my program will load French string table in to dialogs interface (texts of dialogs are French) and when I select English interface, it will load remaining string table (English String Table) - Texts of dialogs are English. How can I do it?

      Papais

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      What have you done till now and what is that you are unable to do?


      Let us not listen to those who think we ought to be angry with our enemies, and who believe this to be great and manly. Nothing is so praiseworthy, nothing so clearly shows a great and noble soul, as clemency and readiness to forgive. - Marcus Tullius Cicero

      D 1 Reply Last reply
      0
      • D dungpapai

        In my program, I have 2 string table (1 string table is French, 1 is English). Texts of dialogs are loaded from string table. When I select French, my program will load French string table in to dialogs interface (texts of dialogs are French) and when I select English interface, it will load remaining string table (English String Table) - Texts of dialogs are English. How can I do it?

        Papais

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        I dont see any problem on your question :doh:


        WhiteSky


        D 1 Reply Last reply
        0
        • R Rajesh R Subramanian

          What have you done till now and what is that you are unable to do?


          Let us not listen to those who think we ought to be angry with our enemies, and who believe this to be great and manly. Nothing is so praiseworthy, nothing so clearly shows a great and noble soul, as clemency and readiness to forgive. - Marcus Tullius Cicero

          D Offline
          D Offline
          dungpapai
          wrote on last edited by
          #4

          brahmma wrote:

          What have you done till now and what is that you are unable to do?

          Former my program, I used dll to load resource French. but now, I don't want to use dll. I want to use string table to support multilingual. use "String Tables" instead of creating a new set of Dialogs for each supported language. String Tables are to support multiple languages. I have created 2 stringtables (French and English): // English (U.S.) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) #ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252) #endif //_WIN32 // String Table // STRINGTABLE DISCARDABLE BEGIN IDS_ABOUTBOX "&About TestStringTable..." IDS_TEST "This is test about dialog load string table" IDS_CREATE "Create" END #endif // English (U.S.) resources //French: // French (France) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) #ifdef _WIN32 LANGUAGE LANG_FRENCH, SUBLANG_FRENCH #pragma code_page(1252) #endif //_WIN32 // String Table // STRINGTABLE DISCARDABLE BEGIN IDS_ABOUTBOX "&About TestStringTable..." IDS_TEST "C'est essai au sujet de table de corde de charge de dialogue" IDS_CREATE "Crée" END #endif // French (France) resources In InitDialog function, I load button text is IDS_CREATE. If English is selected, button text is Create and if French is selected, button text is Crée. Please show me a solution to solve it. Thanks a lot

          Papais

          1 Reply Last reply
          0
          • H Hamid Taebi

            I dont see any problem on your question :doh:


            WhiteSky


            D Offline
            D Offline
            dungpapai
            wrote on last edited by
            #5

            This is my solution but I don't know how to implement this solution. Please send me a example about it Thanks a lot

            Papais

            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