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)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.