Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to stop run of a program after a message display Pin
mrby12319-May-10 8:23
mrby12319-May-10 8:23 
QuestionRe: how to stop run of a program after a message display Pin
David Crow19-May-10 8:44
David Crow19-May-10 8:44 
AnswerRe: how to stop run of a program after a message display Pin
Luc Pattyn19-May-10 7:39
sitebuilderLuc Pattyn19-May-10 7:39 
GeneralRe: how to stop run of a program after a message display Pin
mrby12319-May-10 9:13
mrby12319-May-10 9:13 
GeneralRe: how to stop run of a program after a message display Pin
Luc Pattyn19-May-10 9:39
sitebuilderLuc Pattyn19-May-10 9:39 
GeneralRe: how to stop run of a program after a message display Pin
mrby12319-May-10 10:40
mrby12319-May-10 10:40 
GeneralRe: how to stop run of a program after a message display Pin
«_Superman_»19-May-10 10:46
professional«_Superman_»19-May-10 10:46 
GeneralRe: how to stop run of a program after a message display Pin
Luc Pattyn19-May-10 11:19
sitebuilderLuc Pattyn19-May-10 11:19 
you may want to implement this pseudo-code:

string s="Please enter a number in the range [a,b]"
for(;;) {
    int n=NumericInputBox.Show(s);
    if (n==-1) Application.Exit();
    if (n>=a && n<=b) break;
    s="Sorry, "+n+" is not valid as it is not in the range [a,b]; please try again now (or enter -1 to quit)";
}


Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

GeneralRe: how to stop run of a program after a message display Pin
mrby12319-May-10 12:12
mrby12319-May-10 12:12 
AnswerRe: how to stop run of a program after a message display Pin
Maximilien19-May-10 8:43
Maximilien19-May-10 8:43 
GeneralRe: how to stop run of a program after a message display Pin
mrby12319-May-10 9:15
mrby12319-May-10 9:15 
AnswerRe: how to stop run of a program after a message display Pin
Aescleal19-May-10 12:53
Aescleal19-May-10 12:53 
AnswerRe: how to stop run of a program after a message display Pin
KarstenK19-May-10 21:10
mveKarstenK19-May-10 21:10 
QuestionNeed to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
sashoalm19-May-10 3:45
sashoalm19-May-10 3:45 
AnswerRe: Need to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
Code-o-mat19-May-10 3:51
Code-o-mat19-May-10 3:51 
GeneralRe: Need to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
sashoalm19-May-10 4:03
sashoalm19-May-10 4:03 
GeneralRe: Need to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
Code-o-mat19-May-10 4:05
Code-o-mat19-May-10 4:05 
GeneralRe: Need to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
sashoalm19-May-10 4:28
sashoalm19-May-10 4:28 
Questionhow do I create a process dump file in WinXP and Win7? Pin
Dave Calkins19-May-10 3:28
Dave Calkins19-May-10 3:28 
AnswerRe: how do I create a process dump file in WinXP and Win7? Pin
Code-o-mat19-May-10 3:47
Code-o-mat19-May-10 3:47 
GeneralRe: how do I create a process dump file in WinXP and Win7? Pin
Dave Calkins19-May-10 4:38
Dave Calkins19-May-10 4:38 
QuestionWinInet Pin
Rajmohan SK19-May-10 1:30
Rajmohan SK19-May-10 1:30 
AnswerRe: WinInet Pin
«_Superman_»19-May-10 11:03
professional«_Superman_»19-May-10 11:03 
QuestionRe: WinInet Pin
Rajmohan SK19-May-10 18:29
Rajmohan SK19-May-10 18:29 
QuestionPNG Image Pin
AbhiHcl18-May-10 23:59
AbhiHcl18-May-10 23:59 

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.