TED's answer to this link helped me finally ...
This may help someone in the future ...
Others mentioned using CreateProcess (supposedly to redirect output). A common reason for this is that the program that you run through the "system" is a command-line program. If this is what you compile, you can get rid of the console window by building it as a graphical program. You must do this by enabling Windows.h and using WinMain () as your entry point instead of main ()
source
share