Link to home
Start Free TrialLog in
Avatar of RolandKoehrsen
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?
Avatar of RolandKoehrsen
RolandKoehrsen

ASKER

Edited text of question
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Adjusted points to 60
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