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

C / C++ / MFC

 
AnswerRe: how to use sqlexec Pin
David Crow26-Nov-07 3:55
David Crow26-Nov-07 3:55 
Questionhow to close a form? Pin
panthal24-Nov-07 20:17
panthal24-Nov-07 20:17 
AnswerRe: how to close a form? Pin
Hamid_RT24-Nov-07 23:07
Hamid_RT24-Nov-07 23:07 
GeneralRe: how to close a form? Pin
panthal24-Nov-07 23:13
panthal24-Nov-07 23:13 
GeneralRe: how to close a form? Pin
Hamid_RT25-Nov-07 2:46
Hamid_RT25-Nov-07 2:46 
AnswerRe: how to close a form? Pin
Nelek25-Nov-07 21:52
protectorNelek25-Nov-07 21:52 
QuestionRoate image using dragging [modified] Pin
followait24-Nov-07 18:58
followait24-Nov-07 18:58 
QuestionDialog death Pin
Oliver12324-Nov-07 18:58
Oliver12324-Nov-07 18:58 
What does clicking the "X" box in the upper right corner of a dialog do? I'm puzzled by the behavior I am observing, and would like to understand it better. Below I describe two situations with very different results which seem to depend on clicking that box.

SITUATION A
void CDlgControl::OnBUTTONCreateLadder() <br />
{	<br />
	pLD = new CLadder; 	<br />
}<br />
void CDlgControl::OnBUTTONTestButton() <br />
{<br />
	pLD->DestroyWindow();<br />
	delete pLD;<br />
	pLD = NULL;<br />
}


In SITUATION A above, the dialog is created and displayed. Debug shows it progressing through each command in OnBUTTONTestButton(). Debug then traces it through many Windows functions until it finally reaches a window titled Disassembly where it fails on a command
7E41B517 call 7E4194A4
Debug assertion failure
File Winocc.cpp

When not using Debug, it simply fails on the same message

SITUATION B
The same exact code is used. However, prior to executing OnBUTTONTestButton(), I click the "X" box in the upper right corner of the CLadder window. Then I execute OnBUTTONTestButton(), and everything works just fine.

QUESTION: What does that "X" box do? What makes SITUATION A different from SITUATION B?

Thanks
AnswerRe: Dialog death Pin
Gary R. Wheeler25-Nov-07 4:15
Gary R. Wheeler25-Nov-07 4:15 
AnswerRe: Dialog death Pin
ThatsAlok25-Nov-07 20:17
ThatsAlok25-Nov-07 20:17 
GeneralRe: Dialog death Pin
Florin Crişan25-Nov-07 21:30
Florin Crişan25-Nov-07 21:30 
Questionhow can i get OS hardware info Pin
lgbean24-Nov-07 16:39
lgbean24-Nov-07 16:39 
QuestionRe: how can i get OS hardware info Pin
David Crow24-Nov-07 17:20
David Crow24-Nov-07 17:20 
AnswerRe: how can i get OS hardware info Pin
Gary R. Wheeler25-Nov-07 4:17
Gary R. Wheeler25-Nov-07 4:17 
GeneralRe: how can i get OS hardware info Pin
Hamid_RT25-Nov-07 7:12
Hamid_RT25-Nov-07 7:12 
GeneralRe: how can i get OS hardware info Pin
David Crow25-Nov-07 9:49
David Crow25-Nov-07 9:49 
AnswerRe: how can i get OS hardware info Pin
Hamid_RT24-Nov-07 20:06
Hamid_RT24-Nov-07 20:06 
QuestionOne CFrameWnd with two CView, How to implement? [modified] Pin
followait24-Nov-07 16:27
followait24-Nov-07 16:27 
AnswerRe: One CFrameWnd with two CView, How to implement? Pin
Nelek25-Nov-07 21:47
protectorNelek25-Nov-07 21:47 
GeneralRe: One CFrameWnd with two CView, How to implement? Pin
followait25-Nov-07 22:09
followait25-Nov-07 22:09 
AnswerRe: One CFrameWnd with two CView, How to implement? Pin
JudyL_MD26-Nov-07 3:06
JudyL_MD26-Nov-07 3:06 
GeneralRe: One CFrameWnd with two CView, How to implement? Pin
followait26-Nov-07 3:34
followait26-Nov-07 3:34 
GeneralRe: One CFrameWnd with two CView, How to implement? Pin
JudyL_MD26-Nov-07 3:44
JudyL_MD26-Nov-07 3:44 
QuestionBest Way to Iterate Over a String Pin
Richard Andrew x6424-Nov-07 10:12
professionalRichard Andrew x6424-Nov-07 10:12 
AnswerRe: Best Way to Iterate Over a String Pin
David Crow24-Nov-07 17:23
David Crow24-Nov-07 17:23 

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.