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. Other Discussions
  3. IT & Infrastructure
  4. Windows - Currency Settings

Windows - Currency Settings

Scheduled Pinned Locked Moved IT & Infrastructure
helpquestion
4 Posts 2 Posters 2 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.
  • C Offline
    C Offline
    cdpace
    wrote on last edited by
    #1

    Hello guys, I have a problem where I am developing financial software and when it comes to displaying the ammounts I want the application to take the culture information from the OS and apply the currency accordingly. Bu t my problem is when I go to regional setting in control pannel and change the currency symbol for Maltese language to EUR from LM and press apply everything works ok but what i need isn to set the symbol of the maltese language to EUR but still use the English lanaguage as my current lanaguage but when i do this the maltese currency symbol reverts back to LM. Is there any way i can save the default currency symbol? Thank you guys in advance Regards, Christian Pace

    L 2 Replies Last reply
    0
    • C cdpace

      Hello guys, I have a problem where I am developing financial software and when it comes to displaying the ammounts I want the application to take the culture information from the OS and apply the currency accordingly. Bu t my problem is when I go to regional setting in control pannel and change the currency symbol for Maltese language to EUR from LM and press apply everything works ok but what i need isn to set the symbol of the maltese language to EUR but still use the English lanaguage as my current lanaguage but when i do this the maltese currency symbol reverts back to LM. Is there any way i can save the default currency symbol? Thank you guys in advance Regards, Christian Pace

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

      Strange; I just tried this on my Vista PC, and when I changed to Maltese language, the currency options were Euro, Pound or Dollar. What system are you using?

      1 Reply Last reply
      0
      • C cdpace

        Hello guys, I have a problem where I am developing financial software and when it comes to displaying the ammounts I want the application to take the culture information from the OS and apply the currency accordingly. Bu t my problem is when I go to regional setting in control pannel and change the currency symbol for Maltese language to EUR from LM and press apply everything works ok but what i need isn to set the symbol of the maltese language to EUR but still use the English lanaguage as my current lanaguage but when i do this the maltese currency symbol reverts back to LM. Is there any way i can save the default currency symbol? Thank you guys in advance Regards, Christian Pace

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

        Hi Christian, Why don't you just format the currency independently? In the C++ language I would use the GetCurrencyFormat Function[^] to format the currency as follows:CURRENCYFMT fmt = {0}; TCHAR szFormatted[MAX_PATH] = {0}; LCID lc = MAKELCID(MAKELANGID(LANG_MALTESE,SUBLANG_MALTESE_MALTA),SORT_DEFAULT); GetCurrencyFormat(lc,0,_T("123456.00"),NULL,szFormatted,ARRAYSIZE(szFormatted));
        However if you are developing with the .NET languages I believe that you can use the System.Globalization Namespace[^] which has a NumberFormatInfo Class[^]. Here is a Microsoft Developer Center article which you may find useful: Globalization Step-by-Step[^] Best Wishes, -David Delaune

        C 1 Reply Last reply
        0
        • L Lost User

          Hi Christian, Why don't you just format the currency independently? In the C++ language I would use the GetCurrencyFormat Function[^] to format the currency as follows:CURRENCYFMT fmt = {0}; TCHAR szFormatted[MAX_PATH] = {0}; LCID lc = MAKELCID(MAKELANGID(LANG_MALTESE,SUBLANG_MALTESE_MALTA),SORT_DEFAULT); GetCurrencyFormat(lc,0,_T("123456.00"),NULL,szFormatted,ARRAYSIZE(szFormatted));
          However if you are developing with the .NET languages I believe that you can use the System.Globalization Namespace[^] which has a NumberFormatInfo Class[^]. Here is a Microsoft Developer Center article which you may find useful: Globalization Step-by-Step[^] Best Wishes, -David Delaune

          C Offline
          C Offline
          cdpace
          wrote on last edited by
          #4

          Thank you very much it has helped me alot :) Regards, Christian pace

          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