Board index » delphi » Bug in ShellExecute under Windows NT

Bug in ShellExecute under Windows NT

Does anybody know why ShellExecute doesn't work under Windows NT with Delphi
1.0? WinExec works, but I need to use ShellExecute. I've tried with Windows NT
3.51 and 4.0b.

/H?kan

h...@medianetwork.se

 

Re:Bug in ShellExecute under Windows NT


hg>Does anybody know why ShellExecute doesn't work under Windows NT with Delp
hg>1.0? WinExec works, but I need to use ShellExecute. I've tried with Window
hg>3.51 and 4.0b.

It works just fine in my app. Post an example from your code that doesn't work.

--
Mr. HillBilly (hillbi...@programmers.bbs.no)
Programmers BBS er oppe igjen, n? p? tlf. 22217666/22217669!
 tHyperSoft HyperReader 1.0t

Re:Bug in ShellExecute under Windows NT


Quote
In article <318dc70...@news.medianetwork.se>, h...@medianetwork.se wrote:
>Does anybody know why ShellExecute doesn't work under Windows NT with Delphi
>1.0? WinExec works, but I need to use ShellExecute. I've tried with Windows
NT
>3.51 and 4.0b.

What sort of problems are you having?

I have not had any problem using ShellExecute with NT... Here is a code
snippet:

var
  ExecResult : Word;
  pCommand   : pChar;
  pParams    : pChar;
  pWorkDir   : pChar;
begin
.
{set pCommand, pParams, pWorkDir}
.
ExecResult := ShellExecute(Application.MainForm.Handle, 'Open', pCommand,
pParams, pWorkDir, SW_SHOWNORMAL);
.
.
.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ EMail: wesjo...@hooked.net                   _/
_/ WWW  : http://www.hooked.net/users/wesjones  _/
_/ IRC  : BaldBear                              _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Re:Bug in ShellExecute under Windows NT


In <4n7f4q$i98_...@ppp.hooked.net>, wesjo...@hooked.net (Wes Jones) writes:

Quote

>What sort of problems are you having?

On a different part of this, I'm trying to monitor the progress of an application
started using ShellExecute.  Under NT (3.51), this works fine for 16-bit apps.  But
when Visual FoxPro runs, the call to monitor (GetResourceUsage I think?) always
seems to return a 0 (no instances).  

Is there a way I can still watch that process?  Seems it stopped working after
the change from one version of Win32S to another or Win32.

Richard Knapp

Other Threads