Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWnd::FindWindow() Pin
Carlos Antollini9-Oct-02 5:14
Carlos Antollini9-Oct-02 5:14 
GeneralRe: CWnd::FindWindow() Pin
jmkhael9-Oct-02 6:40
jmkhael9-Oct-02 6:40 
GeneralRe: CWnd::FindWindow() Pin
Cris9-Oct-02 5:33
Cris9-Oct-02 5:33 
GeneralRe: CWnd::FindWindow() Pin
jmkhael9-Oct-02 6:56
jmkhael9-Oct-02 6:56 
GeneralRe: CWnd::FindWindow() Pin
Carlos Antollini9-Oct-02 10:10
Carlos Antollini9-Oct-02 10:10 
Generalisdigit and decimal point Pin
ns9-Oct-02 4:14
ns9-Oct-02 4:14 
GeneralRe: isdigit and decimal point Pin
Steve S9-Oct-02 4:20
Steve S9-Oct-02 4:20 
GeneralRe: isdigit and decimal point Pin
Steen Krogsgaard9-Oct-02 4:19
Steen Krogsgaard9-Oct-02 4:19 
Why can't you use atof (or the likes)?

If you want to parse the string yourself I'd check each char against a set of allowed characters (0-9, '.', ',') and break if an invalid character is met. You can check for multiple decimal points by setting a flag (a boolean) when the first '.' is met.

Of course, this would be dependent on the users choise of number representations. atof takes care of the locale-stuff for you.

Cheers
Steen.

"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralRe: isdigit and decimal point Pin
RedZenBird9-Oct-02 4:58
RedZenBird9-Oct-02 4:58 
GeneralRe: isdigit and decimal point Pin
ns9-Oct-02 4:40
ns9-Oct-02 4:40 
GeneralRe: isdigit and decimal point Pin
Steen Krogsgaard9-Oct-02 5:00
Steen Krogsgaard9-Oct-02 5:00 
GeneralStrange crush Pin
Hans Ruck9-Oct-02 3:52
Hans Ruck9-Oct-02 3:52 
GeneralRe: Strange crush Pin
Daniel Strigl9-Oct-02 3:53
Daniel Strigl9-Oct-02 3:53 
GeneralRe: Strange crush Pin
Daniel Turini9-Oct-02 3:56
Daniel Turini9-Oct-02 3:56 
GeneralRe: Strange crush Pin
Hans Ruck9-Oct-02 4:16
Hans Ruck9-Oct-02 4:16 
GeneralRe: Strange crush Pin
Steen Krogsgaard9-Oct-02 4:25
Steen Krogsgaard9-Oct-02 4:25 
GeneralRe: Strange crush Pin
Hans Ruck9-Oct-02 4:36
Hans Ruck9-Oct-02 4:36 
GeneralRe: Strange crush Pin
Steen Krogsgaard9-Oct-02 4:37
Steen Krogsgaard9-Oct-02 4:37 
GeneralRe: Strange crush Pin
Hans Ruck9-Oct-02 5:00
Hans Ruck9-Oct-02 5:00 
GeneralRe: Strange crush Pin
Steen Krogsgaard9-Oct-02 5:18
Steen Krogsgaard9-Oct-02 5:18 
GeneralRe: Strange crush Pin
Hans Ruck9-Oct-02 5:55
Hans Ruck9-Oct-02 5:55 
GeneralRe: Strange crush Pin
Steen Krogsgaard9-Oct-02 22:04
Steen Krogsgaard9-Oct-02 22:04 
GeneralRe: Strange crush Pin
Ranjan Banerji9-Oct-02 4:26
Ranjan Banerji9-Oct-02 4:26 
GeneralRe: Strange crush Pin
Hans Ruck9-Oct-02 4:44
Hans Ruck9-Oct-02 4:44 
GeneralRe: Strange crush Pin
Daniel Turini9-Oct-02 4:35
Daniel Turini9-Oct-02 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.