Article View: borland.public.cppbuilder.nativeapi
Article #12970Executing file with API
From: Nightshade
Date: Sat, 01 Nov 2003 15:25
Date: Sat, 01 Nov 2003 15:25
25 lines
1556 bytes
1556 bytes
Hi people.I'm trying to update some piece of code from Win98 to WinXP. Now I found a problem... I want to start an html and I used WinExec with this command line "start c:\myfolder\mywebpage.html" In W98 worked fine. But in xp not :( I tryed to replace Winexec function with SHELLEXECUTEINFO ExecInfo; memset(&ExecInfo, 0, sizeof( ExecInfo) ); ExecInfo.lpVerb = "open"; ExecInfo.lpFile = "start"; ExecInfo.cbSize = sizeof(ExecInfo); ExecInfo.lpParameters = htmlfilename.c_str(); ExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; ExecInfo.nShow = SW_HIDE; if(!ShellExecuteEx(&ExecInfo)) return; WaitForSingleObject( ExecInfo.hProcess, INFINITE); Any Idea? :( tnx inadvance
Technical Details
Message-ID:
<pan.2003.11.01.15.08.48.891099@tiscalinet.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f690616b7b87a8b6,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-01 07:39:05 PST From: "Nightshade" <removethis.nightshade@tiscalinet.it> Subject: Executing file with API Date: Sat, 01 Nov 2003 16:25:44 +0100 User-Agent: Pan/0.13.4 (She had eyes like strange sins.) Message-ID: <pan.2003.11.01.15.08.48.891099@tiscalinet.it> Newsgroups: borland.public.cppbuilder.nativeapi MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 151.26.63.220 X-Trace: newsgroups.borland.com 1067700497 151.26.63.220 (1 Nov 2003 07:28:17 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail