Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get measurement system
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00807522
Message ID:
00808080
Vues:
28
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform