Article View: borland.public.cppbuilder.nativeapi
Article #8042Start and stop application
From: Alexander Aliev
Date: Fri, 26 Nov 2004 11:30
Date: Fri, 26 Nov 2004 11:30
19 lines
1609 bytes
1609 bytes
Hallo, I need to start viewing a file by Acrobat Reader from inside my program and close it when exiting my program. Could you advice the best way to do it? If I use ShellExecute() with .pdf file name then I get handle of started application but don't know how to use this handle to close Acrobat. If I use CreateProcess() then I must have command line with full path to Acrobat's .exe . But I don't know this (various versions have different .exe name and the installation path may be different). May be there is a way to find out full .exe associated with .pdf? Thank you for any help, Alexander
Technical Details
Message-ID:
<41a713ab@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,44eef0c11b4047c0,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Alexander Aliev" <ali@isa.ru> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Start and stop application Date: Fri, 26 Nov 2004 14:30:00 +0300 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 83.149.248.80 Message-ID: <41a713ab@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101468587 83.149.248.80 (26 Nov 2004 03:29:47 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail