Article View: borland.public.cppbuilder.nativeapi
Article #8965Re: File In-Use
From: Ed Mulroy [TeamB]
Date: Tue, 24 Aug 2004 12:30
Date: Tue, 24 Aug 2004 12:30
23 lines
1668 bytes
1668 bytes
If the file is opened exclusively then you cannot. If the file is
opened with shared read then the question is if the Add function is
trying for exclusive access. If so you could try calling CopyFile to
make a copy and then Add the copy.
Note that most functions which open files open them for exclusive
access.
. Ed
> Pedram wrote in message
> news:412af84c@newsgroups.borland.com...
>
> I want to Attach a File that Windows told me its in Use by Another
> Software Is there any guide for me to attach an inuse file to my
> email?
>
> I'm using Win98 , BCB5 , FastNet TNMSMTP ...
>
> SMTP->PostMessage->Attachments->Add("thefile.log");
>
> Error: (Windows - Not exact)
> File in Use By Another Application
Technical Details
Message-ID:
<412b34d9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<412af84c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7322e7f3b6c3834d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ed Mulroy [TeamB]" <dont_email_me@invalid.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <412af84c@newsgroups.borland.com> Subject: Re: File In-Use Date: Tue, 24 Aug 2004 08:30:11 -0400 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 12.161.27.61 Message-ID: <412b34d9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1093350617 12.161.27.61 (24 Aug 2004 05:30:17 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail