i have here an application which has to start another application. This other application has no window, callback routine or commandline. But CreateProcess() doesnt start this application. Anybody can give me the right parameters for doing so? Thanx
Posted on 2002-05-24 08:52:49 by belial
Difficult to say anything useful with these infos. Whats the error code from GetLastError?
Posted on 2002-05-24 09:14:22 by japheth
i already found the error. I simply forgot to specify these two structures for CreateProcess().
Posted on 2002-05-24 10:41:04 by belial
why don't you use ShellExecute or WinExec? CreateProcess
is way to complicated just for starting a little program (i mean
if you don't want to work with the running process like
retrieving output, check if process finished etc... )
Posted on 2002-05-24 10:54:17 by mob
Wasnt winexec() an old function, used in win 3.1 times? So i thought that it would be bedder to use an actual function like createprocess(). And createprocess() wasnt so complex at all. Only pushing some 0 and a few offsets, thats all.
Posted on 2002-05-25 08:16:08 by belial