I have an app that I want to launch as a GUI if you execute it with no parameters or as a console app if you pass some parameters.
It works ok-ish as when I launch the GUI it also has a console window in the background. How can I avoid this window?
So if I call c:> myapp.exe → shows GUI (and only GUI, no console)
if I call c:> myapp.exe par1 par2 par3 → shows console
Thanks in advance!