Problem with dialog...
In InitInstance() function im my aplication I have something like this:
while(x==0)
{
...
CMainSheet dlg;
...
dlg.DoModal();
...
}//end_while.
When I start aplication everything work fine and dialog appears, but in second execution of while loop dialog appears only for a moment and disappears immediately even the name of CMainSheet is changed.
Can enybody help me to solve this problem. Thanks!
|