Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get measurement system
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00807522
Message ID:
00808080
Views:
27
>Hi George.
>
>>Alexander's solution is better than mine. Go with that.
>
>Except it always gives 0 for me, regardless of how Measurement is set.
>
Doug,

Try changing the value of LOCALE_USER_DEFAULT to zero. I get the same result you do using 2. However, when I pass a zero, I get the right result.

I wonder if there's a difference caused by different languages that MAKELANGID (which creates the LOCALE_USER_DEFAULT) macro to return different values for Alexander and us (me specifically, I get 0). Maybe Alexander can help here (I'm cc'ing him).
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform