Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncctype and If ( ) Pin
pourang30-Oct-07 9:30
pourang30-Oct-07 9:30 
AnswerRe: cctype and If ( ) Pin
Mark Salsbery30-Oct-07 10:11
Mark Salsbery30-Oct-07 10:11 
You don't have to duplicate the validation code everywhere you use it.

You can write a function which is called to verify input.  Or several functions to validate
different types of input (numeric, alpha-numeric, etc.)

With Windows edit controls, you can subclass the control and perform
validation as characters are entered by the user.

With console input, you can write function(s) which read characters and
perform validation as they're entered by the user.

etc...

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: cctype and If ( ) Pin
pourang30-Oct-07 10:16
pourang30-Oct-07 10:16 
GeneralRe: cctype and If ( ) Pin
John R. Shaw30-Oct-07 16:19
John R. Shaw30-Oct-07 16:19 
Questionunexpected error [please help] Pin
sarojsigdel30-Oct-07 8:48
sarojsigdel30-Oct-07 8:48 
AnswerRe: unexpected error Pin
Mark Salsbery30-Oct-07 10:15
Mark Salsbery30-Oct-07 10:15 
GeneralRe: unexpected error Pin
sarojsigdel30-Oct-07 10:28
sarojsigdel30-Oct-07 10:28 
GeneralRe: unexpected error Pin
Mark Salsbery30-Oct-07 10:35
Mark Salsbery30-Oct-07 10:35 
GeneralRe: unexpected error Pin
sarojsigdel30-Oct-07 10:52
sarojsigdel30-Oct-07 10:52 
GeneralRe: unexpected error Pin
Mark Salsbery30-Oct-07 11:00
Mark Salsbery30-Oct-07 11:00 
QuestionMinimizing a Dialog Pin
69 Bay30-Oct-07 8:03
69 Bay30-Oct-07 8:03 
AnswerRe: Minimizing a Dialog Pin
Llasus30-Oct-07 14:07
Llasus30-Oct-07 14:07 
AnswerRe: Minimizing a Dialog Pin
Nishad S30-Oct-07 18:05
Nishad S30-Oct-07 18:05 
AnswerRe: Minimizing a Dialog Pin
Hamid_RT31-Oct-07 4:20
Hamid_RT31-Oct-07 4:20 
QuestionComments in Visual Studio 2005 Pro Pin
Like2Byte30-Oct-07 8:01
Like2Byte30-Oct-07 8:01 
QuestionHow to prevent direct execution of .msi? Pin
popopo30-Oct-07 7:47
popopo30-Oct-07 7:47 
QuestionCursor help: Pin
Hakan Bulut30-Oct-07 7:09
Hakan Bulut30-Oct-07 7:09 
QuestionRe: Cursor help: Pin
Mark Salsbery30-Oct-07 7:18
Mark Salsbery30-Oct-07 7:18 
QuestionRe: Cursor help: Pin
Maximilien30-Oct-07 7:19
Maximilien30-Oct-07 7:19 
QuestionRe: Cursor help: Pin
Hamid_RT31-Oct-07 4:20
Hamid_RT31-Oct-07 4:20 
QuestionNeed an alternative for StretchBlt()?? Pin
Kiran Satish30-Oct-07 7:00
Kiran Satish30-Oct-07 7:00 
AnswerRe: Need an alternative for StretchBlt()?? Pin
led mike30-Oct-07 7:09
led mike30-Oct-07 7:09 
AnswerRe: Need an alternative for StretchBlt()?? Pin
Chris Losinger30-Oct-07 7:19
professionalChris Losinger30-Oct-07 7:19 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Kiran Satish31-Oct-07 6:34
Kiran Satish31-Oct-07 6:34 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Chris Losinger31-Oct-07 7:28
professionalChris Losinger31-Oct-07 7:28 

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.