🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4063

Re: shellexecute

#4063
From: Hans Galema
Date: Sat, 25 Mar 2006 11:04
14 lines
1486 bytes
Ed Mulroy wrote:
> I don't think default directory should be NULL.  It might need to be 
> ".\\help" (don't overlook the leading period in that string).

Good point.

But maybe better it is to just use an absolute path for the
filename.

  AnsiString FileName = ExtractFilePath (ParamStr(0)) +  "help\\help.pdf";

  ShellExecute(0, "open", FileName.c_str(), NULL, NULL, SW_SHOWNORMAL)

Hans.
Technical Details
Message-ID: <4425249f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <442507f8@newsgroups.borland.com> <4425236a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9f97f6e70caedf1b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 25 Mar 2006 12:04:35 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: shellexecute 
References: <442507f8@newsgroups.borland.com> <4425236a@newsgroups.borland.com>
In-Reply-To: <4425236a@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <4425249f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1143284895 145.98.201.248 (25 Mar 2006 03:08:15 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail