Possible duplicate:Supress console when calling "system" in C ++
When I use the system () function (using the C language) in a GUI application on Windows, a console window appears. How can I disable this?
CreateProcess()if you need a lot of control. ShellExecute()if you need a quick fix.
CreateProcess()
ShellExecute()
Others mentioned using CreateProcess (supposedly to redirect output).
, , "system", . , , , . , Windows.h WinMain() main()
WinMain()
main()
CreateProcess. :
C system(), Win
system() - Unix. , , . GUI , , , API ( ) winPro CreateProcess().
system()