CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Posts
    11

    Regional settings detection

    Hello everyone,

    Perhaps for some this maybe a simple question. I am having language problems with my applications. How can I detect which keyboard the windows regional settings are set to? My problem is that, for calculation purposes, some keyboard use the "." for separating decimals as in 2.5, 34.78 etc... While others use the "," as in 2,5, 34,78. In order for my applications to do proper calculations, it must find a way to detect these settings. Anyone know how?

    Ciao,



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Regional settings detection

    check out this article by Chris Eastwood
    http://www.codeguru.com/vb/articles/1716.shtml

    or use the GetLocaleInfo API


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured