| Class TConsoleForm (unit Conform) |
TForm
| Constructors |
| Functions |
procedure RunButtonClick(Sender: TObject);| Properties |
| Events |
| Variables |
RunButton : TButton;
Static : TStaticText;| Constructors |
| Functions |
procedure RunButtonClick(Sender: TObject);if you want to do a running update of the output of the console app, you would not block here. Instead you could loop while GetExitCodeProcess returned STILL_ACTIVE all the while calling ReadFile on the pipe. Overlapped IO would be nice, but I am not sure it would work on an anonymous pipe. I have tried polling the pipe (works OK) but not overlapped IO. MGL
| Properties |
| Events |
| Variables |
RunButton : TButton;
Static : TStaticText;