Article View: borland.public.cppbuilder.nativeapi
Article #4062ShellExecute
From: Tom
Date: Sat, 25 Mar 2006 09:00
Date: Sat, 25 Mar 2006 09:00
27 lines
1731 bytes
1731 bytes
I have made a help file for my application in .pdf format. I use the
following command to open it on help button click:
ShellExecute(0, "open", "help//help.pdf", NULL, NULL, SW_SHOWNORMAL)
How do I know if that file has been opened, I tried with following:
if (!ShellExecute(0, "open", "help//help.pdf", NULL, NULL, SW_SHOWNORMAL))
Application->MessageBox("You need Acrobat Reader for viewing
help","Information");
but it doesn't work, also I've tried
try
{
ShellExecute(0, "open", "help//pomoc.pde", NULL, NULL, SW_SHOWNORMAL))
}
catch(...)
{
Application->MessageBox("You need Acrobat Reader for viewing
help","Information");
}
it also doesn't work. I just want to know if end user opened the file,
and if he didn't I want to give him message to inform him that help is
in Acrobat Reader format and he needs to install it in order to read help.
Technical Details
Message-ID:
<442506ac$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,eaa79537a99ff07c,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 25 Mar 2006 10:00:30 +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: ShellExecute Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.202.113.47 Message-ID: <442506ac$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1143277228 213.202.113.47 (25 Mar 2006 01:00:28 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail