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

C / C++ / MFC

 
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 
GeneralRe: isdigit and decimal point Pin
RedZenBird9-Oct-02 4:58
RedZenBird9-Oct-02 4:58 
simply modify your algorithm a smidge....

for each char in the string
{
if char is '.' then
{
if more than one '.' found
{
// invalid number format
}
else
{
// assumes '.' is decimal marker....other locales can use ','
continue
}

// note.... ',' could be valid too (but only to left of '.')
// note.... other locales will work differently here

}
else
if ( char is not digit )
{
// not a valid number....
}
}

Just trying to keep the forces of entropy at bay
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 
GeneralRe: Strange crush Pin
Hans Ruck9-Oct-02 5:03
Hans Ruck9-Oct-02 5:03 

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.