A system() call that screws up

Started by
2 comments, last by Coz 21 years, 6 months ago
Anybody nows of a situation that a system() call might not execute(i.e. return(false)), or that gives a run-time error?
Advertisement
When the spawned process fails or gives a runtime error?

system sucks. It spawns a child process (it might even spawn a separate shell under Win32!) and transfers control to it, waiting for its completion. Don''t use it unless you have absolutely no other alternatives (CreateProcess is much, much better).
So CreateProcess can do anything that system can? What is it like?
quote:Original post by Coz
So CreateProcess can do anything that system can?

Not exactly. But it can generally serve as a more efficient, more powerful replacement for system().

quote:What is it like?

All you ever wanted to know about CreateProcess. Well, most of it.

This topic is closed to new replies.

Advertisement