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. getting currency format info

getting currency format info

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

    How do you fill a CURRENCYFMT structure with the user's locale settings? thanks.

    R 1 Reply Last reply
    0
    • N nm_114

      How do you fill a CURRENCYFMT structure with the user's locale settings? thanks.

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      GetCurrencyFormat() /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

      N 1 Reply Last reply
      0
      • R Ravi Bhavnani

        GetCurrencyFormat() /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

        N Offline
        N Offline
        nm_114
        wrote on last edited by
        #3

        But I need the locale info for the CURRENCYFMT struct. I want to get the user's locale settings for the CURRENCYFMT structure, change some of the members (lpCurrencySymbol, NegativeOrder) and then call GetCurrencyFormat().

        R 1 Reply Last reply
        0
        • N nm_114

          But I need the locale info for the CURRENCYFMT struct. I want to get the user's locale settings for the CURRENCYFMT structure, change some of the members (lpCurrencySymbol, NegativeOrder) and then call GetCurrencyFormat().

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Pass NULL in the Locale arg of GetCurrencyFormat(). See this[^] link. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

          N 1 Reply Last reply
          0
          • R Ravi Bhavnani

            Pass NULL in the Locale arg of GetCurrencyFormat(). See this[^] link. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

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

            Passing NULL for the Locale arg seems to stall the program. I'm not sure if I'm explaining my problem right. I don't just want to format a string with the user's locale settings. I want to get the the locale setting values for the CURRENCYFMT members, but then change some of the settings, and then call GetCurrencyFormat() to format the string. I may just be missing it, but I don't see anywhere in the documentation where GetCurrencyFormat() fills a CURRENCYFMT struct with the user's locale settings...

            R 1 Reply Last reply
            0
            • N nm_114

              Passing NULL for the Locale arg seems to stall the program. I'm not sure if I'm explaining my problem right. I don't just want to format a string with the user's locale settings. I want to get the the locale setting values for the CURRENCYFMT members, but then change some of the settings, and then call GetCurrencyFormat() to format the string. I may just be missing it, but I don't see anywhere in the documentation where GetCurrencyFormat() fills a CURRENCYFMT struct with the user's locale settings...

              R Offline
              R Offline
              Ravi Bhavnani
              wrote on last edited by
              #6

              Ah. This[^] page contains a code fragment that shows how to modify the locale's default currency symbol and pass the modified format to GetCurrencyFormat(). See the paragraph starting with "Another scenario would be ...". Hope this helps. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

              N 1 Reply Last reply
              0
              • R Ravi Bhavnani

                Ah. This[^] page contains a code fragment that shows how to modify the locale's default currency symbol and pass the modified format to GetCurrencyFormat(). See the paragraph starting with "Another scenario would be ...". Hope this helps. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

                N Offline
                N Offline
                nm_114
                wrote on last edited by
                #7

                got it. thanks!

                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