billroper: (Default)
[personal profile] billroper
After considerable thrashing about, I've determined that Microsoft's setlocale() function caches the current user locale so it doesn't look it up again if you go and change it in the Control Panel while an application is running. I now know how to assemble the correct locale string and pass it to setlocale() so that the locale is changed correctly, but this is completely undocumented.

gack

Date: 2005-06-09 11:01 pm (UTC)
From: [identity profile] tnatj.livejournal.com
Hee!

There used to be VB-supplied object(s) in VB5 & 6 that fired off event procedure(s) whenever something was changed on the Control Panel. I remember coding a bunch of stuff to correct for issues that occurred when changing the screen workspace size, etc. Very entertaining. The lesson was: "constants aren't."

I know nothing about VB.net, of course.

Date: 2005-06-10 03:58 am (UTC)
From: [identity profile] tigertoy.livejournal.com
It's Windows. You're supposed to reboot your computer every time you change a setting.

Profile

billroper: (Default)
billroper

January 2026

S M T W T F S
     1 2 3
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 5th, 2026 10:57 am
Powered by Dreamwidth Studios