AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi ShellExecute Parameter übergeben???
Thema durchsuchen
Ansicht
Themen-Optionen

ShellExecute Parameter übergeben???

Ein Thema von Christian18 · begonnen am 14. Apr 2004 · letzter Beitrag vom 14. Apr 2004
Antwort Antwort
Seite 2 von 2     12   
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#11

Re: ShellExecute Parameter übergeben???

  Alt 14. Apr 2004, 12:21
Zitat von Christian18:
aber shellexecute gibt auch keine zahl zurück
Glaube ich nicht.
ShowMessage(IntToStr(Shellexecute(..))); Und danach noch ein
RaiseLastOSError; wäre auch nicht verkehrt.

Desweiteren kuck mal hier: MSDN-Library durchsuchenShellexecute
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
Christian18

Registriert seit: 9. Dez 2003
Ort: Hamburg
1.279 Beiträge
 
#12

Re: ShellExecute Parameter übergeben???

  Alt 14. Apr 2004, 12:27
ok jetzt kommt eine fehler meldung die 2

und dann kommt noch einer

systemfehler. code 1447
das fenster hat keine laufleisten
  Mit Zitat antworten Zitat
Christian18

Registriert seit: 9. Dez 2003
Ort: Hamburg
1.279 Beiträge
 
#13

Re: ShellExecute Parameter übergeben???

  Alt 14. Apr 2004, 12:49
was bedeutet dieser Fehler??? und was kann ich dagegen machen???
  Mit Zitat antworten Zitat
xineohp

Registriert seit: 29. Jan 2004
Ort: Heusenstamm
420 Beiträge
 
Delphi 2005 Professional
 
#14

Re: ShellExecute Parameter übergeben???

  Alt 14. Apr 2004, 13:26
moin,

in der Quelle auf die Luckie verwiesen hat steht:

Zitat:
Return Value

Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise. The following table lists the error values. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Windows applications. It is not a true HINSTANCE, however. The only thing that can be done with the returned HINSTANCE is to cast it to an int and compare it with the value 32 or one of the error codes below.

0 The operating system is out of memory or resources.
ERROR_FILE_NOT_FOUND The specified file was not found.
ERROR_PATH_NOT_FOUND The specified path was not found.
ERROR_BAD_FORMAT The .exe file is invalid (non-Microsoft Win32® .exe or error in .exe image).
SE_ERR_ACCESSDENIED The operating system denied access to the specified file.
SE_ERR_ASSOCINCOMPLETE The file name association is incomplete or invalid.
SE_ERR_DDEBUSY The Dynamic Data Exchange (DDE) transaction could not be completed because other DDE transactions were being processed.
SE_ERR_DDEFAIL The DDE transaction failed.
SE_ERR_DDETIMEOUT The DDE transaction could not be completed because the request timed out.
SE_ERR_DLLNOTFOUND The specified dynamic-link library (DLL) was not found.
SE_ERR_FNF The specified file was not found.
SE_ERR_NOASSOC There is no application associated with the given file name extension. This error will also be returned if you attempt to print a file that is not printable.
SE_ERR_OOM There was not enough memory to complete the operation.
SE_ERR_PNF The specified path was not found.
SE_ERR_SHARE A sharing violation occurred.
Wenn 0 der erste Eintrag ist würde ich mal tippen, dass 2 der 3. sein müsste.
Einfach mal mit
If Shellexecute(..)=ERROR_PATH_NOT_FOUND then showmessage('das isses') else showmessage('das wars nicht'); überprüfen.

PS: Wenn mich nicht alles täuscht erwartet Shellexecute als 3. Parameter die auszuführende Datei INKLUSIVE Pfad!
Peter Enenkel
blubb
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:09 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