Autor Beitrag
WhoIsMe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 16



BeitragVerfasst: Di 31.05.05 22:15 
hi leutz
mhh ich hoffe erstmal, dass die Kategorie für die Frage richtig ist.
:roll:
So ich will ne externe Anwendung vom programm aus starten:

ShellExecute(Application.Handle, 'open', pfad , nil, nil, SW_SHOW);

pfad: string

string is aber nicht kompatibel mit PChar
Kann man den String umwandeln oder andere Methode zum starten einer Anwendung benutzen??

mfg Wh0

ps: Ich habe Hilfe und Forum schon durch geschaut, bin aber ne newbe und konnte nix passendes finden, also pls nicht drauf verweisen :D
Blackheart
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

ME
D3Prof.-D6Standard
BeitragVerfasst: Di 31.05.05 23:13 
Oben in deinem Program uses suchen und ShellApi einfügen (bzw. Dazu schreiben) !!!!!!!!

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.Button1Click(Sender: TObject);
begin
 ShellExecute(Application.Handle, 'open', PChar('notepad.exe'), nil,
 nil, sw_ShowNormal); // Öffnet zB. Notepad Editor
end;
WhoIsMe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 16



BeitragVerfasst: Mi 01.06.05 13:05 
THX!!
Läuft perfekt .... :)