Article View: borland.public.cppbuilder.nativeapi
Article #5550Re: How to verify a file is not opened in EXCEL
From: Vladimir Stefanovic
Date: Sat, 06 Aug 2005 17:53
Date: Sat, 06 Aug 2005 17:53
17 lines
1484 bytes
1484 bytes
> [...] I opened a file with EXCEL and then tested it with > IsFileOccupied (below) and get the EFOpenError > exception. It works ok and returns false if the file is not opened. For > some rason the try/catch mechanism is > not working here. It works fine for me. One reason why you can get the exception is when you start the program from IDE! Try to execute you program from explorer. -- Best regards, Vladimir Stefanovic
Technical Details
Message-ID:
<42f4f920@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42f4520f$1@newsgroups.borland.com> <42f45f75$1@newsgroups.borland.com> <42f4f2f6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8c4c5257256193cf X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.nativeapi References: <42f4520f$1@newsgroups.borland.com> <42f45f75$1@newsgroups.borland.com> <42f4f2f6$1@newsgroups.borland.com> Subject: Re: How to verify a file is not opened in EXCEL Date: Sat, 6 Aug 2005 19:53:37 +0200 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 82.117.212.65 Message-ID: <42f4f920@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123350816 82.117.212.65 (6 Aug 2005 10:53:36 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail