Edit Boxes Question
I'm writing a program that output some values. Some of them are integers and others are doubles. I'm using the following function for the integer values:
_itoa( number, string, 10 );
If I want to output a double (i.e. double number=2.55) the above function does not put the decimals.
Is there another function for doubles and floats?
use wsprintf() or sprintf() to format the output to the char array.
sprintf would be my choice as you can format the text better than _atoi.
_atof will convert a float like _atoi.
There is also SetDlgItemInt. As far as I know there is no SetDlgItemFloat ect.