RolandKoehrsen
asked on
country-specific decimal point
How can I use DDV recognizing the Komma ',' instead of '.' as decimal point, validating the contents of a CEdit as 'double' type?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have read about the 'setlocale' function in the online help but
still don't know where and how to call it.
Could you specify your answer (where? how?), because I am a newbie.
thank you
Roland
still don't know where and how to call it.
Could you specify your answer (where? how?), because I am a newbie.
thank you
Roland
ASKER
Adjusted points to 60
ASKER
Well, I have found out by myself:
I set the socal settings to the Windows settings by calling
setlocale(LC_ALL, "");
I get the decimal point sign for my own converting routines with the following code:
lconv *localconv_ ;
localconv_=localeconv();
Komma = localconv_->decimal_point;
Please anybody tell me if that's a good way to do this.
Roland
I set the socal settings to the Windows settings by calling
setlocale(LC_ALL, "");
I get the decimal point sign for my own converting routines with the following code:
lconv *localconv_ ;
localconv_=localeconv();
Komma = localconv_->decimal_point;
Please anybody tell me if that's a good way to do this.
Roland
ASKER