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

C / C++ / MFC

 
AnswerRe: I eant to Build Installer of my Project .. HOW? Pin
Kapoor Vikrant10-Jun-04 21:52
Kapoor Vikrant10-Jun-04 21:52 
GeneralNested Functions Pin
saurabh190510-Jun-04 21:24
saurabh190510-Jun-04 21:24 
GeneralRe: Nested Functions Pin
Johan Rosengren11-Jun-04 0:36
Johan Rosengren11-Jun-04 0:36 
GeneralRe: Nested Functions Pin
David Crow11-Jun-04 2:17
David Crow11-Jun-04 2:17 
Generalerror! repeatedly calling the same MFC dialog box in vc++ Pin
shiva shankar10-Jun-04 20:59
shiva shankar10-Jun-04 20:59 
GeneralRe: error! repeatedly calling the same MFC dialog box in vc++ Pin
Johan Rosengren10-Jun-04 21:13
Johan Rosengren10-Jun-04 21:13 
GeneralRe: error! repeatedly calling the same MFC dialog box in vc++ Pin
shiva shankar10-Jun-04 22:00
shiva shankar10-Jun-04 22:00 
GeneralRe: error! repeatedly calling the same MFC dialog box in vc++ Pin
Johan Rosengren10-Jun-04 22:19
Johan Rosengren10-Jun-04 22:19 
Are you trying to do some silly version of the obnoxious JavaScript-script popping up a messagebox forever ?

Anyway, your problem might not so much be the number of times you display a dialog, but rather the amount of dialogs displayed (and parented) at the same time. But the idea of popping up a new dialog - of the same kind - in response to a press on the OK-button - is in the best case silly, in the worst downright malicious.

As it is so easy to break out of the loop, by pressing Ctrl+Alt+Del, I'll suggest what you should do anyway:

1. Remove the code in the OnOK-handler, except for the call to the base class implementation.

2. Change the code originally creating the dialog to:
while( true ) {
  CHelloDlg cmd;
  cmd.DoModal();
}

3. Get a new hobby.
Questionhow to set font size to a particular item in Listcontrol box Pin
Member 101812810-Jun-04 20:51
Member 101812810-Jun-04 20:51 
AnswerRe: how to set font size to a particular item in Listcontrol box Pin
Johan Rosengren10-Jun-04 21:17
Johan Rosengren10-Jun-04 21:17 
Questionhow to access form controls in another view Pin
elephantstar10-Jun-04 20:36
elephantstar10-Jun-04 20:36 
AnswerRe: how to access form controls in another view Pin
Johan Rosengren10-Jun-04 21:09
Johan Rosengren10-Jun-04 21:09 
GeneralRe: how to access form controls in another view Pin
elephantstar11-Jun-04 12:49
elephantstar11-Jun-04 12:49 
GeneralRe: how to access form controls in another view Pin
Johan Rosengren14-Jun-04 8:56
Johan Rosengren14-Jun-04 8:56 
GeneralRe: how to access form controls in another view Pin
elephantstar14-Jun-04 13:01
elephantstar14-Jun-04 13:01 
GeneralRe: how to access form controls in another view Pin
Johan Rosengren14-Jun-04 20:23
Johan Rosengren14-Jun-04 20:23 
AnswerRe: how to access form controls in another view Pin
Cohen10-Jun-04 21:09
Cohen10-Jun-04 21:09 
GeneralCDialog1Dlg Class is not appeared in class view tab. Pin
Rajesh_K_Sharma10-Jun-04 19:04
Rajesh_K_Sharma10-Jun-04 19:04 
GeneralRe: CDialog1Dlg Class is not appeared in class view tab. Pin
*Dreamz10-Jun-04 19:15
*Dreamz10-Jun-04 19:15 
GeneralRe: CDialog1Dlg Class is not appeared in class view tab. Pin
ThatsAlok11-Jun-04 5:19
ThatsAlok11-Jun-04 5:19 
Generalsending a packet of data to a server Pin
Anonymous10-Jun-04 19:02
Anonymous10-Jun-04 19:02 
GeneralRe: sending a packet of data to a server Pin
bikram singh10-Jun-04 19:24
bikram singh10-Jun-04 19:24 
GeneralRe: sending a packet of data to a server Pin
Anonymous10-Jun-04 19:30
Anonymous10-Jun-04 19:30 
GeneralVC++ : Registry Pin
10-Jun-04 18:34
suss10-Jun-04 18:34 
GeneralRe: VC++ : Registry Pin
bikram singh10-Jun-04 18:52
bikram singh10-Jun-04 18:52 

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.