Click here to Skip to main content
15,907,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can not set breakpoint in release mode Pin
George_George13-Jul-08 22:04
George_George13-Jul-08 22:04 
GeneralRe: can not set breakpoint in release mode Pin
Stephen Hewitt14-Jul-08 14:29
Stephen Hewitt14-Jul-08 14:29 
GeneralRe: can not set breakpoint in release mode Pin
George_George14-Jul-08 16:17
George_George14-Jul-08 16:17 
AnswerRe: can not set breakpoint in release mode Pin
Stephen Hewitt13-Jul-08 20:02
Stephen Hewitt13-Jul-08 20:02 
GeneralRe: can not set breakpoint in release mode Pin
George_George13-Jul-08 21:24
George_George13-Jul-08 21:24 
QuestionHelp regarding multiple projects Pin
paresh_sarjani12-Jul-08 18:10
paresh_sarjani12-Jul-08 18:10 
AnswerRe: Help regarding multiple projects Pin
killabyte12-Jul-08 19:50
killabyte12-Jul-08 19:50 
AnswerRe: Help regarding multiple projects Pin
Ștefan-Mihai MOGA12-Jul-08 21:12
professionalȘtefan-Mihai MOGA12-Jul-08 21:12 
QuestionEnableShellOpen Pin
Bram van Kampen12-Jul-08 13:22
Bram van Kampen12-Jul-08 13:22 
AnswerRe: EnableShellOpen Pin
David Crow12-Jul-08 16:45
David Crow12-Jul-08 16:45 
GeneralRe: EnableShellOpen Pin
Bram van Kampen12-Jul-08 17:02
Bram van Kampen12-Jul-08 17:02 
AnswerRe: EnableShellOpen Pin
Mark Salsbery13-Jul-08 16:58
Mark Salsbery13-Jul-08 16:58 
QuestionMaking a dialog box a child of a view Pin
Mike Hankey12-Jul-08 12:54
mveMike Hankey12-Jul-08 12:54 
AnswerRe: Making a dialog box a child of a view Pin
David Crow12-Jul-08 13:37
David Crow12-Jul-08 13:37 
GeneralRe: Making a dialog box a child of a view Pin
Mike Hankey12-Jul-08 14:46
mveMike Hankey12-Jul-08 14:46 
GeneralRe: Making a dialog box a child of a view Pin
bolivar12312-Jul-08 15:15
bolivar12312-Jul-08 15:15 
GeneralRe: Making a dialog box a child of a view Pin
Mike Hankey12-Jul-08 15:29
mveMike Hankey12-Jul-08 15:29 
GeneralRe: Making a dialog box a child of a view Pin
bolivar12312-Jul-08 16:13
bolivar12312-Jul-08 16:13 
GeneralRe: Making a dialog box a child of a view Pin
Mike Hankey12-Jul-08 16:27
mveMike Hankey12-Jul-08 16:27 
GeneralRe: Making a dialog box a child of a view Pin
bolivar12312-Jul-08 16:52
bolivar12312-Jul-08 16:52 
Come to think of it, creating the child dialog in the view constructor is not the right place. The view window has not been created yet.

Try creating the child dialog in the OnInitialUpdate handler for the view. Alternatively you can create your child dialog in the OnCreate handler (after you have called CView::OnCreate).

I just created a simple SDI app and tried creating a child dialog in the constructor and saw the same ASSERT you are getting. I then moved the child creation code into OnInitialUpdate and the child dialog was created successfully.
GeneralRe: Making a dialog box a child of a view Pin
Mike Hankey12-Jul-08 17:10
mveMike Hankey12-Jul-08 17:10 
GeneralRe: Making a dialog box a child of a view Pin
David Crow12-Jul-08 16:42
David Crow12-Jul-08 16:42 
QuestionHow to tokenize a string Pin
Nandu_77b12-Jul-08 10:37
Nandu_77b12-Jul-08 10:37 
AnswerRe: How to tokenize a string Pin
Saurabh.Garg12-Jul-08 19:41
Saurabh.Garg12-Jul-08 19:41 
AnswerRe: How to tokenize a string Pin
Ștefan-Mihai MOGA12-Jul-08 20:44
professionalȘtefan-Mihai MOGA12-Jul-08 20:44 

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.