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. Multilanguage Resource compilation options

Multilanguage Resource compilation options

Scheduled Pinned Locked Moved C / C++ / MFC
helplearning
6 Posts 4 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.
  • X Offline
    X Offline
    XtremDev
    wrote on last edited by
    #1

    Hi, I have inserted several resources in my project : ENU and FRA. I would like to generate 2 applications: - one only with the ENU resources - the second only with the FRA resources I tried to set the 'project settings > resources Tab' options with diferents parameters with no result. Please help Me! PS: I don't want a resource DLL. the project needs only one EXE file by language XtremDev

    N N 2 Replies Last reply
    0
    • X XtremDev

      Hi, I have inserted several resources in my project : ENU and FRA. I would like to generate 2 applications: - one only with the ENU resources - the second only with the FRA resources I tried to set the 'project settings > resources Tab' options with diferents parameters with no result. Please help Me! PS: I don't want a resource DLL. the project needs only one EXE file by language XtremDev

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      Take a look here: http://msdn2.microsoft.com/en-us/library/d8ws31ff(VS.71).aspx[^]

      Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

      X 1 Reply Last reply
      0
      • N Nelek

        Take a look here: http://msdn2.microsoft.com/en-us/library/d8ws31ff(VS.71).aspx[^]

        Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

        X Offline
        X Offline
        XtremDev
        wrote on last edited by
        #3

        If I use AfxSetRessourceHandle the problem is that I need a resource DLL. so, it implies 2 files by language : 1 exe + 1 dll. I need just one file by language

        N 1 Reply Last reply
        0
        • X XtremDev

          If I use AfxSetRessourceHandle the problem is that I need a resource DLL. so, it implies 2 files by language : 1 exe + 1 dll. I need just one file by language

          N Offline
          N Offline
          Nelek
          wrote on last edited by
          #4

          Actually, if you configure all your messages/names/... of every language in a dll... you should only need an *.exe for all languages and one *.dll for every language. Not a pair exe-dll for everyone. Just wait to see what other people with more knowledge as me say.

          Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

          1 Reply Last reply
          0
          • X XtremDev

            Hi, I have inserted several resources in my project : ENU and FRA. I would like to generate 2 applications: - one only with the ENU resources - the second only with the FRA resources I tried to set the 'project settings > resources Tab' options with diferents parameters with no result. Please help Me! PS: I don't want a resource DLL. the project needs only one EXE file by language XtremDev

            N Offline
            N Offline
            Naveen
            wrote on last edited by
            #5

            I am not sure but try this. in the rc file of your project, you can find section like "**LANGUAGE 12**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**l.fra**\\afxres.rc"" // Standard components\r\n" put some predefinitions in your project before compiling and switch the language aacording to it. like.. #ifdef LAN_ENGLISH "**LANGUAGE 9**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**\\afxres.rc**"" // Standard components\r\n" #elseif "**LANGUAGE 12**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**l.fra**\\afxres.rc"" // Standard components\r\n" #endif now if you want english before compiling put #define LAN_ENGLISH in the stdafx.h. I would like to know whether it worked or not..:)

            nave

            T 1 Reply Last reply
            0
            • N Naveen

              I am not sure but try this. in the rc file of your project, you can find section like "**LANGUAGE 12**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**l.fra**\\afxres.rc"" // Standard components\r\n" put some predefinitions in your project before compiling and switch the language aacording to it. like.. #ifdef LAN_ENGLISH "**LANGUAGE 9**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**\\afxres.rc**"" // Standard components\r\n" #elseif "**LANGUAGE 12**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**l.fra**\\afxres.rc"" // Standard components\r\n" #endif now if you want english before compiling put #define LAN_ENGLISH in the stdafx.h. I would like to know whether it worked or not..:)

              nave

              T Offline
              T Offline
              tom groezer
              wrote on last edited by
              #6

              Does the rc2 file always necessarly contain non-Microsoft Visual C++ edited resources? Also let me know of the following "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" I think the significance of the quotes is to have the literal meaning. Still I feel there is a typo in the closing quote.

              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