Autor Beitrag
en!gma
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 378

win xp
delphi 7.0
BeitragVerfasst: Mo 01.08.05 11:53 
so
wollt mal wieder was neues testn.
also ich habe einen compiler als exe datei vorliegen.
nur ist das so eine hässliche dos oberfläche, naja eigentlich normal.
aber nun zu meiner frage.

kann ich den compiler mit einer von mir erstellen exe öffnen ( naja das wird wohl schnell mit shellexecute gehen )
und anschliessend, falls fehlermeldungen vorhanden sind, diese in einem memo oder soetwas wiedergeben?

mfg

en!gma


Moderiert von user profile iconraziel: Topic aus VCL (Visual Component Library) verschoben am Di 02.08.2005 um 11:00
Benutzername
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 210

Win XP Pro
Delphi 7 PE, D2005 Prof. SSL
BeitragVerfasst: Mo 01.08.05 11:58 
Du könntest mittels Suche in: Delphi-Forum, Delphi-Library PIPES auf die Ausgaben der Konsole zugreifen.
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mo 01.08.05 11:58 
Da gibt's Themen zuhauf - Forensuche verwenden!

AXMD
en!gma Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 378

win xp
delphi 7.0
BeitragVerfasst: Mo 01.08.05 12:00 
user profile iconAXMD hat folgendes geschrieben:
Da gibt's Themen zuhauf - Forensuche verwenden!

AXMD

also mit
compiler einbinden
oder
compiler auslesen
hatte ich nicht so viel erfolg.
ja ich hab vorher geguckt :P

dann werd ich mir jex mal pipes anschaun
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Di 02.08.05 09:56 
Hallo!

Du müsstest deinen Compiler mit CreateProcess starten und bei der übergebenden STARTUPINFO benutzt du dann die Variable hStdOutput.

Such mal hier im Forum nach Suche in: Delphi-Forum, Delphi-Library CREATEPROCESS STARTUPINFO. Dann findest du unter anderem dieses Topic: Ausgabe Konsolenanwenung -> String

Lg Martin
en!gma Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 378

win xp
delphi 7.0
BeitragVerfasst: So 07.08.05 17:14 
also habs grad mal mit getConsoleOutput versucht.
aber muss ich vorher die exe starten?
oder startet die function getConsoleOutput das programm?

naja und dann dachte ich mir, ich könnte als command
extractFilePath(Application.ExeName)+'sc.exe fileToCompile.bla'
(sc.exe is halt mein compiler).
so erstmal muss man sagen, dass wenn ich es einfach so mache, wird mein projekt compiliert.
(also ruft getConsoleOutput doch das programm selbst auf)
aber trotzdem, nach dem kompilieren bekomme ich einen access violation fehler.
er sagt, dass diese zeile leer sei:
Output.LoadFromStream(Stream);
wenn ich da nen bp setze, sagt er mir, dass Output und Stream leer bzw nil seien.
was ist da falsch?