Autor Beitrag
Timbo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 166



BeitragVerfasst: Fr 14.12.07 20:51 
Hallo,

ich möchte ein externes Programm starten und laufen lassen, das heißt ich möchte mit meinem Programm weiter arbeiten.
Nun Brauche ich aber ein Ereignis wenn das Programm wieder geschlossen wird.

Mein Ansatz, bei öffnen Handle merken und dann in bestimmt Abständen checken, ob Handle noch existiert.

Bei ShellExecute soll ja der erste Parameter das Handle sein, ist bei mir aber immer 0

Hat jemand eine bessere Idee?
Kann man sowas auch in einem Thred kapseln und dann mit ShellExecuteAndWaitA arbeiten?
Mit Threads hab ich noch überhaupt keine Erfahrung...
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 14.12.07 21:03 
Moin!

Schonmal in die Suche geschaut? ;) Suche in: Delphi-Forum, Delphi-Library STARTEN WARTEN PROGRAMM

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Wotan89
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: So 16.12.07 23:38 
Probier mal CreateProcess() und WaitForSingleObject().