Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Further to Thomas's <a href="https://stackoverflow.com/questions/1193873/which-reasons-could-make-shellexecute-fail/1193941#1193941">answer</a>, here's some VB6 constants for possible return values of <a href="http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx" rel="nofollow noreferrer">ShellExecute</a>, with possible explanations (I think I originally took these from the MSDN <a href="http://msdn.microsoft.com/en-us/library/bb762153%28VS.85%29.aspx" rel="nofollow noreferrer">page</a>, return value section). A return value of 32 or less means the call failed. The specific value returned indicates what went wrong.</p> <pre><code>Const ERROR_BAD_FORMAT = 11&amp; Const ERROR_FILE_NOT_FOUND = 2&amp; Const ERROR_PATH_NOT_FOUND = 3&amp; ' The specified path was not found. ' Const SE_ERR_ACCESSDENIED = 5 ' The operating system denied access to the specified file. ' Const SE_ERR_ASSOCINCOMPLETE = 27 ' The file name association is incomplete or invalid. ' Const SE_ERR_DDEBUSY = 30 ' The Dynamic Data Exchange (DDE) transaction could not be completed because other DDE transactions were being processed. ' Const SE_ERR_DDEFAIL = 29 ' The DDE transaction failed. ' Const SE_ERR_DDETIMEOUT = 28 ' The DDE transaction could not be completed because the request timed out. ' Const SE_ERR_DLLNOTFOUND = 32 ' The specified dynamic-link library (DLL) was not found. ' Const SE_ERR_FNF = 2 ' The specified file was not found. ' Const SE_ERR_NOASSOC = 31 ' There is no application associated with the given file name extension. ' Const SE_ERR_OOM = 8 ' out of memory ' Const SE_ERR_PNF = 3 ' path not found ' Const SE_ERR_SHARE = 26 ' A sharing violation occurred. ' </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload