Article View: borland.public.cppbuilder.nativeapi
Article #13849Re: Excel Exists on machine?
From: Alan Bellingham
Date: Thu, 18 Sep 2003 07:52
Date: Thu, 18 Sep 2003 07:52
27 lines
2481 bytes
2481 bytes
"Shane Stump" <ShaneStump@TanstaaflSoftware.com> wrote: >True but I just want to know if the user has Excel to add to an export >filter on a menu. I just tested speed on one of my client's SLOW network's >running through Terminal Server and creating/freeing an instance of >Excel.Application isn't too bad. Indeed. I have code that tries to determine all file extensions that may be instantiated as embeddable COM objects that implement a certain interface. So, I iterate the registry, building a list of file extensions to file types, then file types to CLSID, checking the insertable attribute and so on, but I have to instantiate the objects to see the actual interface. It takes two or three seconds for the lot (and I cache the result). That includes Word, Excel, and a couple of dozen others. Annoyingly, it takes twenty or thirty seconds in debug - which appears to be the effect of CodeGuard. Alan Bellingham -- Me <url:mailto:alanb@episys.com> <url:http://www.doughnut.demon.co.uk/> ACCU - C, C++ and Java programming <url:http://accu.org/> The 2004 Discworld Convention <url:http://dwcon.org/>
Technical Details
Message-ID:
<6goimvkdq0ids633cnnqtn3a31vnn7215p@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com> <3f67c332$1@newsgroups.borland.com> <3f67c89d$1@newsgroups.borland.com> <3f68b803@newsgroups.borland.com> <3f68db64$1@newsgroups.borland.com> <3f690251@newsgroups.borland.com> <3f6904f8$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-18 01:20:58 PST From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Excel Exists on machine? Date: Thu, 18 Sep 2003 08:52:04 +0100 Reply-To: alanb@episys.com Message-ID: <6goimvkdq0ids633cnnqtn3a31vnn7215p@4ax.com> References: <3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com> <3f67c332$1@newsgroups.borland.com> <3f67c89d$1@newsgroups.borland.com> <3f68b803@newsgroups.borland.com> <3f68db64$1@newsgroups.borland.com> <3f690251@newsgroups.borland.com> <3f6904f8$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.49.31.105 X-Trace: newsgroups.borland.com 1063871522 62.49.31.105 (18 Sep 2003 00:52:02 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail