![]() |
Re: CMD-Ausgabe von chkdsk, wget usw. ordentlich?
Ich hätte wohl doch den Deklarationsteil bzw. Kopf der Methode nicht weglassen sollen *seufz*:
Delphi-Quellcode:
Davon abgesehen wird pBuf^ in genau der Art schon verwendet. Wenn ich pBuf statt pBuf^ als Paramter in die Funktion OemToChar() schreibe, dann meckert der Compiler, das passt also schon so. Und funktionieren tut es ja auch, aber eben nicht zuverlässig.
procedure TDosThread.FExecute;
const MaxBufSize = 1024; var pBuf: ^TCharBuffer; //i/o buffer iBufSize: Cardinal; app_spawn: PChar; si: STARTUPINFO; sa: PSECURITYATTRIBUTES; //security information for pipes sd: PSECURITY_DESCRIPTOR; pi: PROCESS_INFORMATION; newstdin, newstdout, read_stdout, write_stdin: THandle; //pipe handles Exit_Code: LongWord; //process exit code bread: LongWord; //bytes read avail: LongWord; //bytes available Str, Last: string; I, II: LongWord; LineBeginned: Boolean; MfG Dalai |
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:30 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz