1

Topic: Call of modal dialogue from modal dialogue

Is dialogue IDD_MYDIALOG1 to which there corresponds a variable myDialog1 type CMyDialog1. This dialogue has been caused in the modal image: CMyDialog1 myDialog1; myDIalog1.DoModal (); On this dialogue there is a button with an inscription to "Show" IDC_BUTTON1 to which there corresponds a variable m_IDC_BUTTON1 type CButton. At pushing this button other dialogue - IDD_MYDIALOG2 to which there corresponds a variable myDialog2 type CMyDIalog2 is caused: CMyDialog2 myDialog2; myDIalog2.DoModal (); the Question: whether correctly I do, what I open one modal dialogue from other modal dialogue? If it is correct, what singularities of discovery of one modal dialogue from other modal dialogue exist? If is not present (that is it is impossible to open from one modal dialogue other modal dialogue) how to arrive in this case - for example, what dialogue from these two to open in a non-modal mode, etc.?

2

Re: Call of modal dialogue from modal dialogue

Hello, RussianFellow, you wrote: All is correct, to open modal dialogue from modal dialogue it is possible. Restriction here - only the size of a stack. PS if you, judging by questions, the beginner, what for to you here this here MFC?

3

Re: Call of modal dialogue from modal dialogue

A> PS A> If you, judging by questions, the beginner, what for to you here this here MFC? I learn to work with MFC. On practical tasks.

4

Re: Call of modal dialogue from modal dialogue

Hello, aloch, you wrote: A> All is correct, to open modal dialogue from modal dialogue it is possible. Restriction here - only the size of a stack. Such problem: from an application primary window at pushing button "Calculate" the console window in which process mathematical modal calculations and modal dialogue calcManDialog on which four buttons are displayed is shown is caused:" To stop ", show", continue ", quit". calcManDialog. DoModal (); After end of mathematical calculations the user can push button "Show" that to it modal dialogue solutionDialog in which the decision of the mathematical task is displayed was highlighted: solutionDialog. DoModal (); On what at me in a debugger jumps out the message: Debug Assertion Failed! Program: C:\Windows\system32\mfc110d.dll File: f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\winocc.cpp Line: 329 That it means? How to rectify this error? (A development environment - a Visual Studio 2012, an operating system - Windows 7).

5

Re: Call of modal dialogue from modal dialogue

Hello, RussianFellow, you wrote: A>> PS A>> If you, judging by questions, the beginner, what for to you here this here MFC? RF> I Learn to work with MFC. RF> On practical tasks. There is at me such suspicion that you have a choice possibility  for interface creation. And if it so I urgently recommend to refuse from MFC in favor of more convenient library - Qt. If there is a possibility of a choice of language it is better to look towards a sheaf C# + WinForms. Critical calculations on productivity (if ~10 % of performance penalty it is critical) can be made out in a type dll on a C ++.

6

Re: Call of modal dialogue from modal dialogue

Hello, RussianFellow, you wrote: RF> On what at me in a debugger jumps out the message: RF> RF> Debug Assertion Failed! RF> Program: C:\Windows\system32\mfc110d.dll RF> File: f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\winocc.cpp RF> Line: 329 To begin with to go and look that in this file and this line for ASSERT it is written.

7

Re: Call of modal dialogue from modal dialogue

The problem is already solved - I incorrectly submitted the data in solutionDialog which were then deduced in text boxes in function solutionDialog:: OnInitDialog.

8

Re: Call of modal dialogue from modal dialogue

Hello, RussianFellow, you wrote: RF> the Problem is already solved - I incorrectly submitted the data in solutionDialog which were then deduced in text boxes in function solutionDialog:: OnInitDialog. I as recalled now about all these OnInitDialog and other classes-wizards so after WinForms it is direct badly became

9

Re: Call of modal dialogue from modal dialogue

Hello, RussianFellow, you wrote: RF> Such problem: from an application primary window at pushing button "Calculate" the console window in which process mathematical modal calculations and modal dialogue calcManDialog on which four buttons are displayed is shown is caused: to "Stop,"show, "continue,"quit". What for delirium? What for a console window together with dialogues? You that specially scoff at users of the program? Deduce all data in dialogue fields. For this purpose is a lot of various . And still a question: what is" process mathematical modal calculations "?

10

Re: Call of modal dialogue from modal dialogue

Hello, Nikita123, you wrote: N> And still a question: what is "process mathematical modal calculations"? I apologize, a misprint. Correctly: "process of mathematical calculations". The word "modal" there was superfluous.