Click here to Skip to main content
15,893,663 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Taking up MFC Pin
MayankT24-Aug-06 7:10
MayankT24-Aug-06 7:10 
GeneralRe: Taking up MFC Pin
BlitzPackage24-Aug-06 7:39
BlitzPackage24-Aug-06 7:39 
QuestionOnCtlColor Pin
Anthony988723-Aug-06 5:50
Anthony988723-Aug-06 5:50 
AnswerRe: OnCtlColor Pin
Wes Aday23-Aug-06 7:08
professionalWes Aday23-Aug-06 7:08 
AnswerRe: OnCtlColor Pin
Hamid_RT24-Aug-06 0:52
Hamid_RT24-Aug-06 0:52 
AnswerRe: Dynamic display and properties of UI controls from external data Pin
Jun Du23-Aug-06 7:48
Jun Du23-Aug-06 7:48 
Questionhow to validate the special characters Pin
reddy harish23-Aug-06 5:27
reddy harish23-Aug-06 5:27 
AnswerRe: how to validate the special characters Pin
Sebastian Schneider23-Aug-06 5:40
Sebastian Schneider23-Aug-06 5:40 
Either write a filtered edit control (i.e. a control that does not accept certain characters) or filter the string as soon as the user hits "ok" and show him an error, if you find any characters in that field.

With std::strings you could use the .find-family of operations. You could, optionally, .remove any characters that you find unsuitable and then write the result back to the editbox, with a message-box for the user showing what he did wrong.



Cheers,
Sebastian

--
Contra vim mortem non est medicamen in hortem.

AnswerRe: how to validate the special characters Pin
David Crow23-Aug-06 6:18
David Crow23-Aug-06 6:18 
QuestionCustom owned control going inactive Pin
Graham Reeds23-Aug-06 4:49
Graham Reeds23-Aug-06 4:49 
QuestionUSB gamepad commands in C++ Pin
xkrja23-Aug-06 4:47
xkrja23-Aug-06 4:47 
AnswerRe: USB gamepad commands in C++ Pin
Matt Godbolt23-Aug-06 4:55
Matt Godbolt23-Aug-06 4:55 
AnswerRe: USB gamepad commands in C++ Pin
Cedric Moonen23-Aug-06 4:59
Cedric Moonen23-Aug-06 4:59 
Questionhelp on dialog bar Pin
GANsJob23-Aug-06 4:23
GANsJob23-Aug-06 4:23 
AnswerRe: help on dialog bar Pin
koloporanistka23-Aug-06 9:06
koloporanistka23-Aug-06 9:06 
GeneralRe: help on dialog bar Pin
jk chan23-Aug-06 15:00
jk chan23-Aug-06 15:00 
QuestionCrazy fgets stuff [modified] Pin
stevelam23-Aug-06 4:15
stevelam23-Aug-06 4:15 
AnswerRe: Crazy fgets stuff Pin
Zac Howland23-Aug-06 4:27
Zac Howland23-Aug-06 4:27 
GeneralRe: Crazy fgets stuff Pin
stevelam23-Aug-06 4:52
stevelam23-Aug-06 4:52 
GeneralRe: Crazy fgets stuff Pin
Zac Howland23-Aug-06 5:32
Zac Howland23-Aug-06 5:32 
AnswerRe: Crazy fgets stuff Pin
Rage23-Aug-06 4:51
professionalRage23-Aug-06 4:51 
GeneralRe: Crazy fgets stuff Pin
stevelam23-Aug-06 4:53
stevelam23-Aug-06 4:53 
GeneralRe: Crazy fgets stuff Pin
Rage23-Aug-06 5:05
professionalRage23-Aug-06 5:05 
GeneralRe: Crazy fgets stuff Pin
stevelam23-Aug-06 5:30
stevelam23-Aug-06 5:30 
AnswerRe: Crazy fgets stuff Pin
G_S23-Aug-06 5:12
G_S23-Aug-06 5:12 

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.