🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Start and stop application

#8045
From: Mark Jacobs
Date: Fri, 26 Nov 2004 13:20
24 lines
1914 bytes
To get the full path to the default .PDF handling application, read the
relevant Registry key, like this :-

TRegistry *mjtreg=new TRegistry();
mjtreg->RootKey=HKEY_CLASSES_ROOT;
if
(mjtreg->OpenKeyReadOnly("AcroExch.Document\\protocol\\StdFileEditing\\server"
))
  ShowMessage("Acrobat is "+mjtreg->ReadString(""));
else ShowMessage("You have not installed Acrobat Reader.");
delete mjtreg;

-- 
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk

"Alexander Aliev" <ali@isa.ru> wrote in message
news:41a713ab@newsgroups.borland.com...
| 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?
Technical Details
Message-ID: <41a72da6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.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
References: <41a713ab@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,44eef0c11b4047c0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41a713ab@newsgroups.borland.com>
Subject: Re: Start and stop application
Date: Fri, 26 Nov 2004 13:20:47 -0000
Lines: 26
Organization: DK Computing
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 81.144.157.8
Message-ID: <41a72da6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101475238 81.144.157.8 (26 Nov 2004 05:20:38 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.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