Article View: borland.public.cppbuilder.nativeapi
Article #13826Re: Excel Exists on machine?
From: Remy Lebeau (TeamB)
Date: Wed, 17 Sep 2003 03:13
Date: Wed, 17 Sep 2003 03:13
17 lines
1511 bytes
1511 bytes
"Shane Stump" <ShaneStump@TanstaaflSoftware.com> wrote in message
news:3f67cfa0$1@newsgroups.borland.com...
> I used code like the following:
You could trim that down to the following:
bool IsExcelInstalled(void)
{
std::auto_ptr<TRegistry> pRegistry(new TRegistry);
pRegistry->RootKey = HKEY_CLASSES_ROOT;
pRegistry->Access = KEY_READ; // for BCB5+ only
return pRegistry->KeyExists("Excel.Application");
}
Gambit
Technical Details
Message-ID:
<3f67d109@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com> <3f67cfa0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6956ac1eb736942d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-16 20:39:53 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com> <3f67cfa0$1@newsgroups.borland.com> Subject: Re: Excel Exists on machine? Date: Tue, 16 Sep 2003 20:13:03 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f67d109@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1063768329 207.175.226.26 (16 Sep 2003 20:12:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail