I have a program which needs to call another program.
So after some research I found ShellExecuteEx
command with appropriate SHELLEXECUTEINFO
to call an external program. That works fine so far, but it pops up actually two windows: command line and the Qt-application with its window.
If I execute the Qt-application stand alone there is no command line window.
What I now want to achieve is getting rid of the console window and show only the window of the Qt-application. I tried to set the nShow
property of SHELLEXECUTEINFO
to SW_HIDE
but than both windows are hidden.
I don't know if it matters but the caller program is compiled with vs2010 and the called program is compiled with visual studio 2017, both as 32-bit applications.