Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to HitTest an item of a List Ctrl owned by another thread Pin
Ryan Binns8-Apr-05 2:12
Ryan Binns8-Apr-05 2:12 
Generalpliz help me with input validation Pin
mpapeo7-Apr-05 15:05
mpapeo7-Apr-05 15:05 
GeneralRe: pliz help me with input validation Pin
Christian Graus7-Apr-05 15:14
protectorChristian Graus7-Apr-05 15:14 
GeneralRe: pliz help me with input validation Pin
Anonymous7-Apr-05 15:35
Anonymous7-Apr-05 15:35 
GeneralRe: pliz help me with input validation Pin
Christian Graus7-Apr-05 15:39
protectorChristian Graus7-Apr-05 15:39 
GeneralRe: pliz help me with input validation Pin
mpapeo7-Apr-05 15:50
mpapeo7-Apr-05 15:50 
GeneralRe: pliz help me with input validation Pin
Christian Graus7-Apr-05 15:52
protectorChristian Graus7-Apr-05 15:52 
GeneralRe: pliz help me with input validation Pin
mpapeo8-Apr-05 1:48
mpapeo8-Apr-05 1:48 
I stil have the program crushing, i might be missing something
<br />
printf("\nEnter choice (1-4): ");<br />
   valid = 0;<br />
   while( valid == 0)<br />
   {<br />
     fgets(iobuf,sizeof(iobuf),stdin);<br />
     // remove '\n' <br />
     len = strlen(iobuf)-1;<br />
     iobuf[len] = 0;<br />
     // validate data<br />
     valid = 1; // assume valid input<br />
     for(i = 0; i < len; i++)<br />
     {<br />
         if( !isdigit(iobuf[i]))<br />
         {<br />
           printf("\nPlese enter numeric digits only (1-4)\n");<br />
           valid = 0;<br />
         }<br />
      }<br />
   }<br />
   hProcess = atoi(iobuf);<br />
 <br />
	<br />
   //scanf("%d", &choice);<br />
	return hProcess;//choice; <br />
 }<br />


-oam-
GeneralRe: pliz help me with input validation Pin
David Crow8-Apr-05 5:29
David Crow8-Apr-05 5:29 
GeneralRe: pliz help me with input validation Pin
LighthouseJ7-Apr-05 15:48
LighthouseJ7-Apr-05 15:48 
GeneralRe: pliz help me with input validation Pin
mpapeo7-Apr-05 15:59
mpapeo7-Apr-05 15:59 
GeneralRe: pliz help me with input validation Pin
mpapeo7-Apr-05 16:21
mpapeo7-Apr-05 16:21 
Generalemulating commands in c++ Pin
Jeb997-Apr-05 14:32
Jeb997-Apr-05 14:32 
GeneralRe: emulating commands in c++ Pin
Christian Graus7-Apr-05 15:14
protectorChristian Graus7-Apr-05 15:14 
QuestionWhere to download a crystal report tool from? Pin
awasthy7-Apr-05 13:52
awasthy7-Apr-05 13:52 
AnswerRe: Where to download a crystal report tool from? Pin
liquid_8-Apr-05 7:13
liquid_8-Apr-05 7:13 
GeneralUnhandled Exception. Pin
blinkered7-Apr-05 11:28
blinkered7-Apr-05 11:28 
GeneralRe: Unhandled Exception. Pin
Shaileshhex22-Jul-08 1:50
Shaileshhex22-Jul-08 1:50 
Generalflat toolbar in WinXP Pin
BaShOr7-Apr-05 10:27
BaShOr7-Apr-05 10:27 
GeneralRe: flat toolbar in WinXP Pin
Mark Salsbery15-Nov-06 11:32
Mark Salsbery15-Nov-06 11:32 
GeneralHelp with a school project Pin
diegomiami7-Apr-05 10:02
diegomiami7-Apr-05 10:02 
GeneralRe: Help with a school project Pin
Ravi Bhavnani7-Apr-05 11:33
professionalRavi Bhavnani7-Apr-05 11:33 
GeneralRe: Help with a school project Pin
diegomiami7-Apr-05 11:51
diegomiami7-Apr-05 11:51 
GeneralRe: Help with a school project Pin
Ravi Bhavnani7-Apr-05 11:54
professionalRavi Bhavnani7-Apr-05 11:54 
GeneralRe: Help with a school project Pin
David Crow7-Apr-05 16:25
David Crow7-Apr-05 16:25 

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.