Autor Beitrag
Die Brotmafia
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 110

Win XP Suse Linux 9.3
Delphi 7 Enterprise, Delphi 2005
BeitragVerfasst: Sa 10.12.05 20:07 
Also, ich würde gerne das Ergebniss einer Shellexecute in einem Memo anzeigen lassen. Z.b.

ausblenden Delphi-Quelltext
1:
    Shellexecute(Application.handle,'open','net',pchar(' view'),nil,SW_hide);					


Dieser Code würde mir die Pc's in meinem kleinen Lan Netzwerk anzeigen, ich würde jetzt gerne das Ergebniss in mein Memo1 eintragen lassen können.
Danke schon im Vorraus

Die Brotmafia

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt
Moderiert von user profile iconChristian S.: Topic aus Sonstiges verschoben am Mi 14.12.2005 um 11:18
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 10.12.05 20:09 
Moinmoin.

Forensuche: Suche in der Entwickler-Ecke PIPE ;)

coucou,
WeBBy

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Die Brotmafia Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 110

Win XP Suse Linux 9.3
Delphi 7 Enterprise, Delphi 2005
BeitragVerfasst: Sa 10.12.05 20:54 
Also, ich habs jetzt mal mit der TDosCommand versucht.

So, ich hab sie runtergeladen und hab jetzt da so ne .Pas und ne .dcu Datei, dann geh ich in mein Delphi und dann auf Component -> Install Component und geb dann bei Unit Filename den Pfad zu der .Pas Datei an.
Dann installiert ers anscheinend.

Nun kann ich in meinem Delphi bei uses DosCommand eingeben.

Wenn ich jetzt aber den Code
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
 procedure TForm1.FormCreate(Sender: TObject);
begin
  DosBox := TDosCommand.Create(self);
  DosBox.OutputLines := Memo1.Lines;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  DosBox.CommandLine := Edit1.Text;
  DosBox.Execute;
end


benutzen will, kommt "Undeclared Identifier: 'Dos Box'"....

Wenn ich die Dos Box ans laufen kriege ist das Problem gelöst.

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 10.12.05 21:25 
Moinmoin.

user profile iconDie Brotmafia hat folgendes geschrieben:
(...) benutzen will, kommt "Undeclared Identifier: 'Dos Box'"....


Hast du denn überhaupt irgendwo

ausblenden Delphi-Quelltext
1:
2:
var
DosBox: TDosCommand;


stehen?


coucou,
WeBBy

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Die Brotmafia Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 110

Win XP Suse Linux 9.3
Delphi 7 Enterprise, Delphi 2005
BeitragVerfasst: So 11.12.05 13:24 
Ok jetzt gehts, danke!!
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 11.12.05 15:29 
Moinmoin.

user profile iconDie Brotmafia hat folgendes geschrieben:
Ok jetzt gehts, danke!!

Kein Problem. :tongue:


coucou,
WeBBy

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.