🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Excel Exists on machine?

#13827
From: Shane Stump
Date: Wed, 17 Sep 2003 03:22
29 lines
2006 bytes
I prefer the little more "fluff" in this type code because I have a tendency
to "add" to such functions as I go along (in case of different versions of
excel, etc).

Regards,

SHane

"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f67d109@newsgroups.borland.com...
>
> "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: <3f67d35a$1@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!newsswitch.lcs.mit.edu!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com> <3f67cfa0$1@newsgroups.borland.com> <3f67d109@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:54 PST
Reply-To: "Shane Stump" <ShaneStump@TanstaaflSoftware.com>
From: "Shane Stump" <ShaneStump@TanstaaflSoftware.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com> <3f67cfa0$1@newsgroups.borland.com> <3f67d109@newsgroups.borland.com>
Subject: Re: Excel Exists on machine?
Date: Tue, 16 Sep 2003 22:22:03 -0500
Lines: 31
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: 209.219.240.162
Message-ID: <3f67d35a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063768922 209.219.240.162 (16 Sep 2003 20:22:02 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail