You can try CreateProcess. Have a look here:
http://stackoverflow.com/questions/1597289/hide-console-in-c-system-function-win
You can try CreateProcess. Have a look here:
http://stackoverflow.com/questions/1597289/hide-console-in-c-system-function-win
system()
is a Unix-compatibility holdover. I believe it's implemented by executing an external shell, which itself opens a console window. If you want to execute a GUI program directly, you'll probably need to use the win32 CreateProcess() API (and variants) directly.
CreateProcess() if you need a lot of control. ShellExecute() if you need a quick fix.
Others have mentioned using CreateProcess (presumably to redirect the output).
The general reason this happens is that the program you are running via "system" is a command-line program. If it is something you compile yourself, you can get rid of the console window by building it as a GUI program instead. You should be able to do this by including Windows.h and using WinMain()
as your entry point instead of main()