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 get the current window system language name?

how to get the current window system language name?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
8 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.
  • B Offline
    B Offline
    benben
    wrote on last edited by
    #1

    Hi: how to get the current windows system language name? I want to know if it is English or the other languages(such as chinese, japanese)

    T R 2 Replies Last reply
    0
    • B benben

      Hi: how to get the current windows system language name? I want to know if it is English or the other languages(such as chinese, japanese)

      T Offline
      T Offline
      Toni78
      wrote on last edited by
      #2

      Check out the PRIMARYLANGID macro. I hope that helps you. // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie

      1 Reply Last reply
      0
      • B benben

        Hi: how to get the current windows system language name? I want to know if it is English or the other languages(such as chinese, japanese)

        R Offline
        R Offline
        Ryan Binns
        wrote on last edited by
        #3

        Look at the GetLocaleInfo() function, specifying either LOCALE_SYSTEM_DEFAULT or LOCALE_USER_DEFAULT for the first parameter. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
        Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

        T B 2 Replies Last reply
        0
        • R Ryan Binns

          Look at the GetLocaleInfo() function, specifying either LOCALE_SYSTEM_DEFAULT or LOCALE_USER_DEFAULT for the first parameter. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
          Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

          T Offline
          T Offline
          Toni78
          wrote on last edited by
          #4

          Man, I wish I had heard about that function a year ago. Good job Ryan! Your replies never cease to amaze me. I truly learn a lot from your posts. // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie

          R R 2 Replies Last reply
          0
          • R Ryan Binns

            Look at the GetLocaleInfo() function, specifying either LOCALE_SYSTEM_DEFAULT or LOCALE_USER_DEFAULT for the first parameter. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
            Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

            B Offline
            B Offline
            benben
            wrote on last edited by
            #5

            Thanks a lot benben

            R 1 Reply Last reply
            0
            • T Toni78

              Man, I wish I had heard about that function a year ago. Good job Ryan! Your replies never cease to amaze me. I truly learn a lot from your posts. // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie

              R Offline
              R Offline
              Rage
              wrote on last edited by
              #6

              Toni78 wrote: Your replies never cease to amaze me. I truly learn a lot from your posts. so true. ~RaGE();

              1 Reply Last reply
              0
              • T Toni78

                Man, I wish I had heard about that function a year ago. Good job Ryan! Your replies never cease to amaze me. I truly learn a lot from your posts. // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie

                R Offline
                R Offline
                Ryan Binns
                wrote on last edited by
                #7

                Thanks :-D Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
                Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

                1 Reply Last reply
                0
                • B benben

                  Thanks a lot benben

                  R Offline
                  R Offline
                  Ryan Binns
                  wrote on last edited by
                  #8

                  You're welcome :) Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
                  Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

                  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