Article View: borland.public.cppbuilder.nativeapi
Article #16838Re: ShellExecute - crash on NT4
From: Murray Nelson
Date: Mon, 21 Apr 2003 22:57
Date: Mon, 21 Apr 2003 22:57
32 lines
2058 bytes
2058 bytes
I think you have to be a tad more specific.
SHELLEXECUTEINFO ExecInfo;
memset (&ExecInfo, 0, sizeof(ExecInfo));
ExecInfo.cbSize = sizeof(ExecInfo);
ExecInfo.lpVerb = "open";
ExecInfo.lpFile = "C:\\Program Files\\Internet Explorer\\iexplore.exe";
ExecInfo.lpParameters = "http://www.yahoo.com";
ExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
ExecInfo.nShow = SW_HIDE;
if (!ShellExecuteEx(&ExecInfo))
{
printf("Couldn't find command");
}
Roger Remacle wrote:
> The following opens Yahoo without problems on Win98, Win2000 but
> crashes(application not responding) on NT4 SP6.... Can someone tell me why?
>
> void __fastcall TAboutDialog::Label4Click(TObject *Sender)
> {
> ShellExecute(Handle, "open", "www.yahoo.com", NULL,
> NULL, SW_SHOWDEFAULT);
> }
>
> All help appreciated
> Roger.
>
>
>
Technical Details
Message-ID:
<3EA47744.4010906@agt.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ea04c39$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5c247afc24d17dcf X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-21 16:03:03 PST Message-ID: <3EA47744.4010906@agt.net> Date: Mon, 21 Apr 2003 16:57:08 -0600 From: Murray Nelson <mnpicker@agt.net> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: ShellExecute - crash on NT4 References: <3ea04c39$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.173.166.192 X-Trace: newsgroups.borland.com 1050965978 142.173.166.192 (21 Apr 2003 15:59:38 -0700) Lines: 33 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail