Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Externe Anwendung unter XP & Vista öffnen (https://www.delphipraxis.net/116950-externe-anwendung-unter-xp-vista-oeffnen.html)

AlexII 9. Jul 2008 11:10

Re: Externe Anwendung unter XP & Vista öffnen
 
Na gut, dachte vllt kommen mit der UAC doch welche Probleme. Aber danke :thumb:

NickelM 15. Jul 2008 02:13

Re: Externe Anwendung unter XP & Vista öffnen
 
Geht das nicht auch einfach mit :
Delphi-Quellcode:
WinExec('calc.exe',sw_show);
?????????

Bebe 15. Jul 2008 04:10

Re: Externe Anwendung unter XP & Vista öffnen
 
Es läuft unter Vista 64Bit + SP1 und UAC. Calc wird korrekt gestartet.

Gruß
Matze

Matze 15. Jul 2008 05:19

Re: Externe Anwendung unter XP & Vista öffnen
 
Hallo,

im PSDK bzw. in der Delphi-Hilfe steht dazu jedoch folgendes:

Zitat:

The WinExec function runs the specified application.

Note This function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.
Grüße, Matze

Bernhard Geyer 15. Jul 2008 07:49

Re: Externe Anwendung unter XP & Vista öffnen
 
Zitat:

Zitat von Matze
im PSDK bzw. in der Delphi-Hilfe steht dazu jedoch folgendes:

Zitat:

The WinExec function runs the specified application.

Note This function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.
Grüße, Matze

Und ab Vista sollte man wieder ShellExecute nehmen falls es nötig ist das die UAC berücksichtig werden soll.

NickelM 15. Jul 2008 12:01

Re: Externe Anwendung unter XP & Vista öffnen
 
Aso
Wusste ich net.
Hab nur Delhpi 5 und da steht leider solche Funtionen net drin :wall:

hitzi 15. Jul 2008 12:08

Re: Externe Anwendung unter XP & Vista öffnen
 
Gibt's unter Delphi 5 die Unit ShellApi, welche die Nutzung von ShellExecute möglich macht, noch nicht?


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:45 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz