Click here to Skip to main content
15,902,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini9-Nov-08 22:23
Dhiraj kumar Saini9-Nov-08 22:23 
GeneralRe: closing of a dialog box on button click problem! Pin
enhzflep9-Nov-08 22:30
enhzflep9-Nov-08 22:30 
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini9-Nov-08 22:50
Dhiraj kumar Saini9-Nov-08 22:50 
GeneralRe: closing of a dialog box on button click problem! Pin
enhzflep9-Nov-08 22:57
enhzflep9-Nov-08 22:57 
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini9-Nov-08 23:05
Dhiraj kumar Saini9-Nov-08 23:05 
GeneralRe: closing of a dialog box on button click problem! Pin
Iain Clarke, Warrior Programmer10-Nov-08 0:00
Iain Clarke, Warrior Programmer10-Nov-08 0:00 
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini10-Nov-08 0:52
Dhiraj kumar Saini10-Nov-08 0:52 
GeneralRe: closing of a dialog box on button click problem! Pin
Iain Clarke, Warrior Programmer10-Nov-08 1:20
Iain Clarke, Warrior Programmer10-Nov-08 1:20 
Well, your dialog is starting (which is good news), but it is also finishing too early.

You need to find out why it's finishing early then. Ask yourself what you know about stopping dialog. Maybe the OnInitDialog is not working correctly. Maybe something in your code is stopping the dialog? Try a breakpoint in CDialog::EndDialog - it could tell you which bit of your code is killing the dialog. Same with OnClose...

If you still can't find it, comment out 99% of the dialog code until it stays up. Then start putting code back again until it breaks.

This is going to be a pain to track down, but none of it is rocket science. Just plod through your code until you find the offending line or two.

Iain.
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini10-Nov-08 2:00
Dhiraj kumar Saini10-Nov-08 2:00 
AnswerRe: closing of a dialog box on button click problem! Pin
David Crow10-Nov-08 3:23
David Crow10-Nov-08 3:23 
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini10-Nov-08 18:14
Dhiraj kumar Saini10-Nov-08 18:14 
QuestionRe: closing of a dialog box on button click problem! Pin
David Crow11-Nov-08 3:23
David Crow11-Nov-08 3:23 
QuestionGet System Fixed Drive Pin
cpvc++9-Nov-08 18:47
cpvc++9-Nov-08 18:47 
AnswerRe: Get System Fixed Drive Pin
Hamid_RT9-Nov-08 20:16
Hamid_RT9-Nov-08 20:16 
QuestionRe: Get System Fixed Drive Pin
David Crow10-Nov-08 3:24
David Crow10-Nov-08 3:24 
QuestionHelp please Pin
dtaylor019-Nov-08 18:31
dtaylor019-Nov-08 18:31 
AnswerRe: Help please Pin
enhzflep9-Nov-08 19:11
enhzflep9-Nov-08 19:11 
AnswerRe: Help please Pin
Iain Clarke, Warrior Programmer9-Nov-08 22:02
Iain Clarke, Warrior Programmer9-Nov-08 22:02 
QuestionRe: Help please Pin
CPallini9-Nov-08 23:05
mveCPallini9-Nov-08 23:05 
AnswerRe: Help please Pin
Member 419459310-Nov-08 3:21
Member 419459310-Nov-08 3:21 
GeneralRe: Help please Pin
CPallini10-Nov-08 3:36
mveCPallini10-Nov-08 3:36 
QuestionDLL PROBLEM Pin
Member 37948639-Nov-08 18:30
Member 37948639-Nov-08 18:30 
AnswerRe: DLL PROBLEM Pin
Hamid_RT9-Nov-08 20:19
Hamid_RT9-Nov-08 20:19 
GeneralRe: DLL PROBLEM Pin
Member 379486310-Nov-08 7:02
Member 379486310-Nov-08 7:02 
AnswerRe: DLL PROBLEM Pin
Iain Clarke, Warrior Programmer9-Nov-08 22:14
Iain Clarke, Warrior Programmer9-Nov-08 22:14 

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.