Mail Archives: djgpp/1997/04/15/03:41:35
On Mon, 14 Apr 1997 09:17:44 GMT, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
wrote:
> Based on what was said in this thread and on what I know about file
> sharing on Windows 95, it seems to me that `fopen' and `open' should
> first try to open the file in compatibility mode, and if that fails,
> try once aagain with SH_DENYNO bit set. This should work in most
> cases. Am I right? Could you please test this and post the necessary
> patches to `fopen' and `open'? Thanks.
I have tried `fopen' on file already opened in M$Word:
BC4.5 dos: Sharing violation. Abort, Retry, Fail?
-#- easywin (win 3.xx?): Message box with Cancel, Retry.
-#- win32 console: file opened.
GCC (DJGPP): Permission denied (EACCES)
I don't know why it is different in DOS and win32, but
maybe it's because file sharing should be present for win32
and is not required for DOS.
BTW, is there any way to tell whether file is opened in sharing mode
or not (without opening with/without sharing)?
- Raw text -