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

C / C++ / MFC

 
QuestionHow to reach external devices? Pin
cemlouis23-Jul-03 0:02
cemlouis23-Jul-03 0:02 
AnswerRe: How to reach external devices? Pin
Toni7823-Jul-03 0:31
Toni7823-Jul-03 0:31 
AnswerRe: How to reach external devices? Pin
KarstenK23-Jul-03 0:35
mveKarstenK23-Jul-03 0:35 
AnswerRe: How to reach external devices? Pin
Toni7823-Jul-03 1:25
Toni7823-Jul-03 1:25 
GeneralHelp me.....about MDI app Pin
_skidrow_vn_22-Jul-03 23:56
_skidrow_vn_22-Jul-03 23:56 
GeneralRe: Help me.....about MDI app Pin
Iain Clarke, Warrior Programmer23-Jul-03 0:27
Iain Clarke, Warrior Programmer23-Jul-03 0:27 
GeneralIE Programming question! Pin
Small Rat22-Jul-03 23:48
Small Rat22-Jul-03 23:48 
GeneralDialog box pops up and vanishes immediately Pin
Deepak Samuel22-Jul-03 23:43
Deepak Samuel22-Jul-03 23:43 
Hi,
My application has many dialog box, and I use the following code to go from one to another..

CcamsetfinDlg dlg8;
CcsettDlg dlg2;
CsettDlg dlg3;
Ctstdlg dlg4;
CtmpsetDlg dlg5;
CtmrsetDlg dlg6;
CSimpletonDlg dlg;
//m_pMainWnd = &dlg; //I removed the line or else the dialog vanishes immediately
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{m_pMainWnd = &dlg4;
dlg4.DoModal();

}
else if (nResponse == IDCANCEL)
{
INT_PTR pRet = -1;
pRet= dlg3.DoModal();
if(pRet==5)
{
m_pMainWnd = &dlg8;
pRet=dlg8.DoModal();
}
if(pRet==0)
{
m_pMainWnd= &dlg4;//
dlg4.DoModal();
}
The problem is the dialog box pointed by &dlg4 in the above if loop pops up and vanishes immediately.I had this problem with the first dialog box, but got over it as I got a suggestion that I should remove the line m_pMainWnd = &dlg; which I have quoted as a comment statement. Please help me in this regard.

Thanks.

Deepak Samuel
GeneralRe: Dialog box pops up and vanishes immediately Pin
Frank K23-Jul-03 0:56
Frank K23-Jul-03 0:56 
GeneralRe: Dialog box pops up and vanishes immediately Pin
David Crow23-Jul-03 3:44
David Crow23-Jul-03 3:44 
GeneralRe: Dialog box pops up and vanishes immediately Pin
wb23-Jul-03 1:48
wb23-Jul-03 1:48 
GeneralEnumerates LPT Pin
Eugene Pustovoyt22-Jul-03 22:16
Eugene Pustovoyt22-Jul-03 22:16 
GeneralRe: Enumerates LPT Pin
Alexander M.,23-Jul-03 1:54
Alexander M.,23-Jul-03 1:54 
GeneralRe: Enumerates LPT Pin
Iain Clarke, Warrior Programmer23-Jul-03 1:59
Iain Clarke, Warrior Programmer23-Jul-03 1:59 
GeneralRe: Enumerates LPT Pin
Eugene Pustovoyt23-Jul-03 3:29
Eugene Pustovoyt23-Jul-03 3:29 
GeneralIf I want to ask C/C++ question under Linux environment. Pin
George222-Jul-03 21:54
George222-Jul-03 21:54 
GeneralRe: If I want to ask C/C++ question under Linux environment. Pin
Alexander M.,23-Jul-03 1:56
Alexander M.,23-Jul-03 1:56 
GeneralRe: If I want to ask C/C++ question under Linux environment. Pin
George223-Jul-03 3:01
George223-Jul-03 3:01 
GeneralRe: If I want to ask C/C++ question under Linux environment. Pin
roel_23-Jul-03 2:01
roel_23-Jul-03 2:01 
GeneralRe: If I want to ask C/C++ question under Linux environment. Pin
George223-Jul-03 3:00
George223-Jul-03 3:00 
GeneralRe: If I want to ask C/C++ question under Linux environment. Pin
David Crow23-Jul-03 3:41
David Crow23-Jul-03 3:41 
GeneralRe: If I want to ask C/C++ question under Linux environment. Pin
George223-Jul-03 3:46
George223-Jul-03 3:46 
GeneralRe: If I want to ask C/C++ question under Linux environment. Pin
David Crow23-Jul-03 3:51
David Crow23-Jul-03 3:51 
GeneralRe: If I want to ask C/C++ question under Linux environment. Pin
George224-Jul-03 2:44
George224-Jul-03 2:44 
GeneralRe: If I want to ask C/C++ question under Linux environment. Pin
roel_23-Jul-03 5:02
roel_23-Jul-03 5:02 

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.