Sign in to follow this  
Followers 0
cappy2112

Reading regional settings

3 posts in this topic

I've just found out that my program is failing on computers that don't have the US/English character set loaded.

I can't possibly write a program for multiple languages, so I want to at least detect the regional settings, and if they don't match the settings in the attach screenshot, warn the user, then exit.

Is there a non-graphical way of detecting these regional settings, ie a straightforward API call or calls?

thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I think this will help

MsgBox( 0, "", RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WOW\boot.description", "language.dll"))

@OSLang might be helpful as well... look at the help file. the example is what you want.

Let me know if this solves it

-Mike

Edited by mikeytown2

Share this post


Link to post
Share on other sites

I think this will help

MsgBox( 0, "", RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WOW\boot.description", "language.dll"))

@OSLang might be helpful as well... look at the help file. the example is what you want.

Let me know if this solves it

-Mike

The msgbox line produces what I want, on my system, now I have to send ths to users who aren't using the English character set, to see what shows up on theirs.

THanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0