Hi!
Only two windows-dialogs in my programm. On button click I do

this->EndDialog(0);
        MyWiew mw;
        mw.DoModal();   
        ShellExecute(0, NULL, fdlg.m_ofn.lpstrFile, NULL, NULL, SW_MINIMIZE);       

But MS WORD opens file and starts only when mw is closed. How to start it with the mw together?
Thanks in advance.

exchange lines 3 and 4)