Autor Beitrag
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 08.04.06 12:02 
Ich will in meinem Programm zb: ein *.doc mit Word öffnen (oder mit dem prog welches Windows dazu halt verwenden wird). wie mach ich das??


Moderiert von user profile iconraziel: Topic aus VCL (Visual Component Library) verschoben am Sa 08.04.2006 um 12:54
Waldteufel
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 08.04.06 12:11 
Hi Elundril. :wave:

Guck mal in der WinAPI-Hilfe nach ShellExecute ;-)

ausblenden Delphi-Quelltext
1:
ShellExecute(Application.Handle, PChar('open'), PChar('D:\er\Pfad\Zu\Dem\Dokum.ent'), nilnil, SW_SHOW);					
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 08.04.06 12:19 
danke!! P.S.: netter pfadname^^!
Superbollen
Hält's aus hier
Beiträge: 7



BeitragVerfasst: Sa 20.05.06 01:45 
Dazu hab ich auch noch ne kurz Anfrage. Was muss ich unter dem Dateipfad eingeben, wenn ich immer die .exe ausführen will, die im gleichen Ordner ist, aber unabhängig vom Ordnerpfad?

Die Anwendung Peinstellungen.exe soll im gleichen Ordner die Anwendung Pauswertung.exe laden.

Schonmal Danke


Edit: Und wenn ich schonmal da bin, was bewirkt des "Nil" und des "SW_SHOW" ?
drstar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 79
Erhaltene Danke: 2

Windows 8.1/x64
Delphi 10.1
BeitragVerfasst: Sa 20.05.06 05:48 
Edit: Und wenn ich schonmal da bin, was bewirkt des "Nil" und des "SW_SHOW" ?

NIL wird übergeben, wenn ein Pointer als Parameter erwartet wird, man jedoch keinen übergeben kann oer möchte. Ist übrigens ein Schlüsselwort in Delphi und war es bereits in Borland Pascal 7.0. SW_SHOW bedeutet, wenn ich mich recht entsinne, daß das Programm nicht als minimierte Anwendung gestartet wird.
Superbollen
Hält's aus hier
Beiträge: 7



BeitragVerfasst: Sa 20.05.06 11:29 
ok, danke für die Infos.

Den Rest hab ich jetzt durch Ausprobieren auch geschafft