Moin,
Mein Code:
Delphi-Quellcode:
If CreateProcess(PChar(Progpfad + 'seti.exe'), '-stop_after_xfer', nil, nil, False, CREATE_NEW_PROCESS_GROUP, nil, PChar(Progpfad + '\WU' + IntToStr(i)), Startup, Prozess) then
begin
try
WaitForSingleObject(Prozess.hProcess, INFINITE);
Application.ProcessMessages;
finally
CloseHandle(Prozess.hProcess);
CloseHandle(Prozess.hThread);
end;
So. Wenn das läuft, macht die Konsole (über AllocConsole) das wasse soll...nur mein Proggi mach garnix mehr...ich kann kein Button anklicken und das Fenster wird net nachgezeichnet bzw. refrehst...
wo krieg ich da jet n Application.ProcessMessages rein, damits funzt??
edit: jetz isses Delphi-Formatiert