Click here to Skip to main content
16,011,170 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help needed Pin
19-Dec-01 6:24
suss19-Dec-01 6:24 
Generalgetting a file's last accessed/modified time Pin
Kuniva19-Dec-01 2:32
Kuniva19-Dec-01 2:32 
GeneralRe: getting a file's last accessed/modified time Pin
Ravi Bhavnani19-Dec-01 2:56
professionalRavi Bhavnani19-Dec-01 2:56 
GeneralRe: getting a file's last accessed/modified time Pin
Kuniva19-Dec-01 3:20
Kuniva19-Dec-01 3:20 
GeneralProcess Pin
Praba19-Dec-01 1:46
Praba19-Dec-01 1:46 
GeneralRe: Process Pin
Ravi Bhavnani19-Dec-01 8:22
professionalRavi Bhavnani19-Dec-01 8:22 
GeneralRe: Process Pin
Ravi Bhavnani19-Dec-01 11:28
professionalRavi Bhavnani19-Dec-01 11:28 
GeneralDialog not showing. Pin
Jon Hulatt19-Dec-01 1:15
Jon Hulatt19-Dec-01 1:15 
Hi,

My MFC dialog app, for initialisation, needs to load and process a large file, and operation which takes about 20 seconds.

I decided to make a new dialog class, CLoad. This dialog class implements worker threads to do the load, and displays a status bar for the user.

In CMyApp::InitInstance():

CLoad  load_dlg;
CMainDlg dlg;
	

m_pMainWnd = &load_dlg;
load_dlg.DoModal();

m_pMainWnd = &dlg;

int nResponse = dlg.DoModal();
	if (nResponse == IDOK) ....... 


Basically, i DoModal() on my loading dialog, i call EndDialog() from within that dialog to close it when the loading is finished. Then, the second (main) dialog should be shown. But the dlg.DoModal() returns immediately and the dialog is not shown. Is this because I'm closing the main dialog with EndDialog() ?

I really don't know why my dialog is not showing.

Any ideas?

Sorry to dissapoint you all with my lack of a witty or poignant signature.
GeneralRe: Dialog not showing. Pin
Rickard Andersson2019-Dec-01 3:30
Rickard Andersson2019-Dec-01 3:30 
GeneralMaximum Number of Files Per Directory Pin
John Clump19-Dec-01 0:51
John Clump19-Dec-01 0:51 
GeneralRe: Maximum Number of Files Per Directory Pin
Rick Crone20-Dec-01 8:51
Rick Crone20-Dec-01 8:51 
GeneralListBox In SDk Pin
San19-Dec-01 0:49
San19-Dec-01 0:49 
GeneralRe: ListBox In SDk Pin
Christian Graus19-Dec-01 1:11
protectorChristian Graus19-Dec-01 1:11 
GeneralRe: ListBox In SDk Pin
Ravi Bhavnani19-Dec-01 8:24
professionalRavi Bhavnani19-Dec-01 8:24 
Generaltreeview update Pin
19-Dec-01 0:29
suss19-Dec-01 0:29 
GeneralRe: treeview update Pin
19-Dec-01 2:49
suss19-Dec-01 2:49 
Generalwriting a resource to a file Pin
Kuniva19-Dec-01 0:17
Kuniva19-Dec-01 0:17 
GeneralRe: writing a resource to a file Pin
Joaquín M López Muñoz19-Dec-01 0:42
Joaquín M López Muñoz19-Dec-01 0:42 
GeneralRe: writing a resource to a file Pin
Jon Hulatt19-Dec-01 1:16
Jon Hulatt19-Dec-01 1:16 
GeneralRe: writing a resource to a file Pin
Kuniva19-Dec-01 2:28
Kuniva19-Dec-01 2:28 
QuestionWhy I can not return an array from a function? Pin
BigMouth19-Dec-01 0:02
BigMouth19-Dec-01 0:02 
AnswerRe: Why I can not return an array from a function? Pin
Joaquín M López Muñoz19-Dec-01 0:11
Joaquín M López Muñoz19-Dec-01 0:11 
GeneralRe: Why I can not return an array from a function? Pin
BigMouth19-Dec-01 18:19
BigMouth19-Dec-01 18:19 
AnswerRe: Why I can not return an array from a function? Pin
Jon Hulatt19-Dec-01 2:31
Jon Hulatt19-Dec-01 2:31 
GeneralRe: Why I can not return an array from a function? Pin
Ernest Laurentin19-Dec-01 5:26
Ernest Laurentin19-Dec-01 5:26 

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.