Article View: borland.public.cppbuilder.nativeapi
Article #4067Re: shellexecute
From: Tom
Date: Sat, 25 Mar 2006 13:33
Date: Sat, 25 Mar 2006 13:33
19 lines
1713 bytes
1713 bytes
Well, I want to thank both, ED & Hans on your help, your suggestions solved my problem and did exactly what I needed. Thanks again. Hans Galema wrote: > 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:
<442546c0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder3.cambrium.nl!feed.tweaknews.nl!195.62.97.14.MISMATCH!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<442507f8@newsgroups.borland.com> <4425236a@newsgroups.borland.com> <4425249f$1@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 14:33:54 +0100 From: Tom <tom@net.com> Reply-To: tom@net.com User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: shellexecute References: <442507f8@newsgroups.borland.com> <4425236a@newsgroups.borland.com> <4425249f$1@newsgroups.borland.com> In-Reply-To: <4425249f$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.202.109.203 Message-ID: <442546c0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1143293632 213.202.109.203 (25 Mar 2006 05:33:52 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder3.cambrium.nl!feed.tweaknews.nl!195.62.97.14.MISMATCH!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail