The system () function opens a window

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?

0
source share
4 answers

CreateProcess()if you need a lot of control. ShellExecute()if you need a quick fix.

+2
source

Others mentioned using CreateProcess (supposedly to redirect output).

, , "system", . , , , . , Windows.h WinMain() main()

+1

CreateProcess. :

C system(), Win

0

system() - Unix. , , . GUI , , , API ( ) winPro CreateProcess().

0

All Articles