Delphi Create a Process or Shelling to start up an external application.
Delphi Create a Process or Shelling to start up an external application. Since Windows 10 has been released there has been hiccups when dealing with the Windows API. The strange behavior may not return an error code and may actually end up doing nothing leaving you more perplexed then ever. For Delphi developers the best thing to do is retire the ShellExecute API call and convert it over to ShellExecuteEX or to create a separate process you should use CreateProcess. Let's examine the simple task of calling ShellExecute(0, 'open', Pchar('DocumentName.pdf'), '', '', SW_SHOWNORMAL); work under Windows 7 and 8, which would start the Acrobat Reader and open the file but under Windows 10 this no longer is the case. So the next step was to update the call to use…