Autor Beitrag
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Mo 31.05.04 16:00 
Hallo,
ich habe ein Programm geschrieben, dass möglichst auch ohne GUI Fenster zurechtkommensoll. Daher soll der erfahrende Anwender durch den Startparameter /C anstatt des Fenster eine Konsole zu sehen kriegen. Das alles soll aber in einer Anwendung implementiert sein. Die Angabe von {$APPTYPE CONSOLE} funktioniert natürlich nicht, da hierdurch immer eine Konsole sichtbar wäre, auch wenn das Programm im Fenstermodus läuft. Gibt es einen API-Befehl zum dynamischen erzeugen eines Konsolenfenster und der anschließenden Verwendung von WriteLn, ReadLn, etc.?

Danke für eure Hilfe,
maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
LonghornUser
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 796



BeitragVerfasst: Mo 31.05.04 23:44 
Das würde mich auch interessieren :)
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Di 01.06.04 00:02 
Der Frage entsprechend die Antwort: Ja, gibt es. ;)

Aber nachdem ich annehm, dass du die Funktion selbst auch wissen willst.. ;) Suche im MSDN ALLOCCONSOLE

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
maxk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Di 01.06.04 18:44 
Danke, werde es gleich mal ausprobieren.

Jetzt feier ich erstmal meinen 500. Beitrag :dance:

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
maxk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Di 01.06.04 19:50 
Hallo,
leider funktionier AllocConsole nicht im FormCreate, trotz Result=True. Bei Button1Click geht's. Wie kann ich eine vorhandene Console sichtbar machen?

maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.