At 04/25/2003 11:10 AM, Jason Teagle wrote:
>> >If you try to open a file denying other people access with
>> something like
>> >(MFC) CFile::shareExclusive then that should work.....
>>
>> If that call will succeed when I already have the file open, that will
>> solve the problem, I will give it a try.
>
>I'm afraid it won't, to my knowledge - it will balk simply because your app
>already has it open.
>
>Can we ask why you can't check using this technique BEFORE you open the file
>yourself?
Because that wouldn't be useful information at that point in time.
Supposing some other user does have the file open. But, by the time you
are done editing it, the other user has closed it.
Saving at that point would be legal, but the flag would say it was open by
another user.
Phil Daley < AutoDesk >
http://personal.monad.net/~p_daley
