Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: keyboard events mfc-- ok but Pin
deeps_cute8-Mar-07 1:31
deeps_cute8-Mar-07 1:31 
QuestionCommunication through port using VC++ Pin
Karismatic7-Mar-07 23:10
Karismatic7-Mar-07 23:10 
QuestionHow to check whether an input is a number [modified] Pin
bend0r!7-Mar-07 23:04
bend0r!7-Mar-07 23:04 
QuestionRe: How to check whether an input is a number Pin
prasad_som7-Mar-07 23:11
prasad_som7-Mar-07 23:11 
GeneralRe: How to check whether an input is a number Pin
bend0r!7-Mar-07 23:18
bend0r!7-Mar-07 23:18 
AnswerRe: How to check whether an input is a number Pin
prasad_som7-Mar-07 23:22
prasad_som7-Mar-07 23:22 
AnswerRe: How to check whether an input is a number Pin
Hamid_RT7-Mar-07 23:47
Hamid_RT7-Mar-07 23:47 
AnswerRe: How to check whether an input is a number Pin
mohamed Sobh8-Mar-07 0:14
mohamed Sobh8-Mar-07 0:14 
BOOL Flag = TRUE;
int length = input.GetLength();
for(int x = 0; X < length; x++)
{
if(!IsDigit(input.GetAt(x)))
{
Flag = FALSE;
break;
}
}
if(Flag)
{
// input is numeric
}
else
{
// input isn't numeric
}

if you need to check if input is a number (integer or float) the following code will work

BOOL Flag = TRUE;
int length = input.GetLength();
for(int x = 0; X < length; x++)
{
if(!IsDigit(input.GetAt(x)))
{
if(input.GetAt(x) == '.'
continue;
Flag = FALSE;
break;
}
}
if(Flag)
{
// input is numeric
}
else
{
// input isn't numeric
}


mohamed sobh

QuestionMSI Package - multilanguage Pin
Manjunath S7-Mar-07 22:35
Manjunath S7-Mar-07 22:35 
QuestionRestore Previous Volume ID In C Drive Pin
Md. firoz Khan Noor8-Mar-07 0:20
Md. firoz Khan Noor8-Mar-07 0:20 
QuestionRe: Restore Previous Volume ID In C Drive Pin
David Crow9-Mar-07 2:25
David Crow9-Mar-07 2:25 
QuestionParent Window decision Pin
prithaa7-Mar-07 21:34
prithaa7-Mar-07 21:34 
QuestionJapanese Support for MFC Pin
micutzu7-Mar-07 21:30
micutzu7-Mar-07 21:30 
AnswerRe: Japanese Support for MFC Pin
Programm3r7-Mar-07 21:39
Programm3r7-Mar-07 21:39 
GeneralRe: Japanese Support for MFC Pin
micutzu7-Mar-07 21:49
micutzu7-Mar-07 21:49 
GeneralRe: Japanese Support for MFC Pin
Programm3r7-Mar-07 21:50
Programm3r7-Mar-07 21:50 
AnswerRe: Japanese Support for MFC Pin
Hamid_RT7-Mar-07 23:41
Hamid_RT7-Mar-07 23:41 
QuestionMonitoring a Process [modified] Pin
Programm3r7-Mar-07 21:10
Programm3r7-Mar-07 21:10 
AnswerRe: Monitoring a Process Pin
Programm3r7-Mar-07 23:42
Programm3r7-Mar-07 23:42 
QuestionMultithreading issue Pin
Cedric Moonen7-Mar-07 21:05
Cedric Moonen7-Mar-07 21:05 
AnswerRe: Multithreading issue Pin
Roger Stoltz7-Mar-07 22:27
Roger Stoltz7-Mar-07 22:27 
GeneralRe: Multithreading issue Pin
Cedric Moonen7-Mar-07 23:14
Cedric Moonen7-Mar-07 23:14 
GeneralRe: Multithreading issue Pin
Roger Stoltz8-Mar-07 1:50
Roger Stoltz8-Mar-07 1:50 
GeneralRe: Multithreading issue Pin
Cedric Moonen8-Mar-07 2:29
Cedric Moonen8-Mar-07 2:29 
GeneralRe: Multithreading issue Pin
Roger Stoltz8-Mar-07 3:03
Roger Stoltz8-Mar-07 3: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.