🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Excel Exists on machine?

#13830
From: Vladimir Afanasyev
Date: Wed, 17 Sep 2003 07:34
25 lines
1769 bytes
Hi,
"Shane Stump" <ShaneStump@TanstaaflSoftware.com> wrote:
>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).
>

Really, using this way you only test that this record (ProgId)
exists in the Registry. Yes, you can read it but you can 
write it the same way also.
You can try to use follow way:

Variant Excel;
try{
Excel=Variant::CreateObject("Excel.Application");
}
catch(...)
{
ShowMessage("No, it is not Excel");
return;
}
ShowMessage("Seems Excel");

Vladimir.
Technical Details
Message-ID: <3f680e95$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!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> <3f67d35a$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-17 00:40:38 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: Excel Exists on machine?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 212.82.216.226 212.82.216.226    
X-Forwarded-For: 192.168.0.147
References: <3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com> <3f67cfa0$1@newsgroups.borland.com> <3f67d109@newsgroups.borland.com> <3f67d35a$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f680e95$1@newsgroups.borland.com>
Date: 17 Sep 2003 00:34:45 -0700
X-Trace: newsgroups.borland.com 1063784085 207.105.83.65 (17 Sep 2003 00:34:45 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail