Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionexe fine in codeblocks Pin
abhi sharma19-Feb-13 1:54
abhi sharma19-Feb-13 1:54 
AnswerRe: exe fine in codeblocks Pin
Albert Holguin19-Feb-13 4:10
professionalAlbert Holguin19-Feb-13 4:10 
QuestionRe: exe fine in codeblocks Pin
David Crow19-Feb-13 4:40
David Crow19-Feb-13 4:40 
QuestionWDK 7600.16385.1 Compiler Pin
msr_codeproject18-Feb-13 17:44
msr_codeproject18-Feb-13 17:44 
AnswerRe: WDK 7600.16385.1 Compiler Pin
Richard MacCutchan19-Feb-13 3:05
mveRichard MacCutchan19-Feb-13 3:05 
QuestionInvoking a modal Dialog whitin a modal Pin
ForNow18-Feb-13 12:39
ForNow18-Feb-13 12:39 
AnswerRe: Invoking a modal Dialog whitin a modal Pin
Jibesh18-Feb-13 12:55
professionalJibesh18-Feb-13 12:55 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow18-Feb-13 13:42
ForNow18-Feb-13 13:42 
Thanks for the suggestion however I am still getting an exception on the CFileDialog.Domodal

Here is the the code from the main window when a user selects Debug Program the following

ON_COMMAND handler is invoked

C++
Cprogdialog progdlg(this);              // consta prog dialog

  nRet = progdlg.DoModal();


                 return;
}


Then the follwing code is the on okay handler to this modal dialog box

C++
void Cprogdialog::Process()
{
	
		  UpdateData(TRUE); // read in data
          CFileDialog dlg(TRUE, _T("asm"), _T("*.asm"), NULL);
          dlg.m_ofn.lStructSize = sizeof(OPENFILENAME);
          dlg.m_ofn.lpstrFilter = (LPCTSTR)"*.asm,*.cbl,*.c";
          dlg.m_ofn.lpstrInitialDir = (LPCTSTR)"F:\\";
          dlg.m_ofn.lpstrTitle =  (LPCTSTR)"Program Source Code";
		  dlg.m_ofn.lpstrFile =  new char[50];  
		  dlg.SetParent(this);
             if (dlg.DoModal() == IDOK)
                    AfxMessageBox((LPCTSTR)"Waiting for program " || (LPCTSTR)progname || (LPCTSTR)" In JobName " || (LPCTSTR)jobname,MB_OK);


The exception occurs at dlg.DoModal

Thanks again
GeneralRe: Invoking a modal Dialog whitin a modal Pin
«_Superman_»18-Feb-13 19:51
professional«_Superman_»18-Feb-13 19:51 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
Richard MacCutchan18-Feb-13 21:24
mveRichard MacCutchan18-Feb-13 21:24 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow19-Feb-13 2:29
ForNow19-Feb-13 2:29 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
Richard MacCutchan19-Feb-13 3:02
mveRichard MacCutchan19-Feb-13 3:02 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
David Crow19-Feb-13 9:42
David Crow19-Feb-13 9:42 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow19-Feb-13 11:33
ForNow19-Feb-13 11:33 
SuggestionRe: Invoking a modal Dialog whitin a modal Pin
David Crow20-Feb-13 3:25
David Crow20-Feb-13 3:25 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow20-Feb-13 7:22
ForNow20-Feb-13 7:22 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
David Crow20-Feb-13 7:39
David Crow20-Feb-13 7:39 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow20-Feb-13 9:41
ForNow20-Feb-13 9:41 
QuestionRe: Invoking a modal Dialog whitin a modal Pin
David Crow20-Feb-13 10:08
David Crow20-Feb-13 10:08 
AnswerRe: Invoking a modal Dialog whitin a modal Pin
ForNow20-Feb-13 10:43
ForNow20-Feb-13 10:43 
SuggestionRe: Invoking a modal Dialog whitin a modal Pin
David Crow20-Feb-13 10:46
David Crow20-Feb-13 10:46 
QuestionRe: Invoking a modal Dialog whitin a modal Pin
David Crow19-Feb-13 4:34
David Crow19-Feb-13 4:34 
AnswerRe: Invoking a modal Dialog whitin a modal Pin
ForNow19-Feb-13 6:10
ForNow19-Feb-13 6:10 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
Richard MacCutchan19-Feb-13 8:50
mveRichard MacCutchan19-Feb-13 8:50 
QuestionRe: Invoking a modal Dialog whitin a modal Pin
David Crow19-Feb-13 9:36
David Crow19-Feb-13 9:36 

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.