Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Shellexecute funktioniert nicht wie es soll?! (https://www.delphipraxis.net/73615-shellexecute-funktioniert-nicht-wie-es-soll.html)

DGL-luke 20. Jul 2006 15:47


Shellexecute funktioniert nicht wie es soll?!
 
Hallo, folgender aufruf:

Delphi-Quellcode:
ShellExecute(Handle,'open','notepad',PChar(FileName),'',0);
FileName ist eine existierende Datei (absoluter Pfad). passieren tut gar nix.

Wenn ichs nur so mache:

Delphi-Quellcode:
ShellExecute(Handle,'open',PChar(FileName),'','',0);
passiert auch nix....

was mach ich falsch?

PS: handle auf 0 bringt auch nix.

r2c2 20. Jul 2006 16:08

Re: Shellexecute funktioniert nicht wie es soll?!
 
Hallo Lukas :hi:

Ersetz mal die letzte 0 durch SW_NORMAL...

//Nachtrag:
N Blick ins PSDK hilft in solchen Fällen...

mfg

Christian

DGL-luke 20. Jul 2006 16:19

Re: Shellexecute funktioniert nicht wie es soll?!
 
:wall:

EDIT: danke...


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:05 Uhr.

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