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

        MyWiew mw;
        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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.