• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

Problem with different regional and language options in Windows


I developed a "working" program with Visual Basic 6.

Recently I changed the regional and language options of Windows XP (my machine) -> Language for Non-unicode programs. It was set as English (united States) previously when I was developing the program, but now, problems are occuring frequently after I  changed it to Chinese.

Does anyone faced this kind of problem before? Or anyone can give an idea what is going on? And does this problem also occur if you simply change the language other than English? I checked on the Internet and some refered this to the problem caused by the VB function 'strconv' which I used in my program.

Please help!! And please suggest any good solution to this!
1 Solution
Please explain exactly what problems you are experiencing. Are you trying to make your application display Chinese or are you just testing English program using Chinese Regional Settings? Where/how are you using StrConv? Are you using standard Vb intrinsic controls or Forms 2.0 object library?
Leigh PurvisDatabase DeveloperCommented:
Never having had this battle personally, I wouldn't really know if there are specific issues with moving your app over to using Chinese, but AFAIK *the* resource for internationalisation in VB is Michael Kaplan's literature - some of which will be here
If you've already been there or there isn't relevant info somewhere there - there's probably loads more in his book.
gan_pennyAuthor Commented:
Hi there,

I've found the problem and solution on DI Management's web site (URL: http://www.di-mgt.com.au/cryptoBlowfishVer6.html).

My problem was actually caused by the Unicode system which stores a character in 2 bytes, while an ANSI system stores a character using 1 byte. I had my program developed under ANSI system and problems occured when I ran it on a Unicode system.

For your info, I've built a simple program to test out a few VB functions to check their reliability issue on different system. I found out that Chr() and Asc() caused many problems. So what I did was to create a substitution function for each of them. I use Strconv() to do the conversion from byte to string, and vice versa.

Thank you for your participation! =)
Closed, 250 points refunded.
The Experts Exchange
Community Support Moderator of all Ages

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now