TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JERRY COFFIN
from: HERBERT BUSHONG
date: 1997-08-24 07:14:00
subject: files

::>  HB>     but *I've* never been able to make heads or tails of the allowed
::>  HB> values for the protmode parameter  (I was going to ask that same
::>  HB> question, except I was going to ask the values).
::> Okay, lets take a look at the values:
::> filebuf::sh_compat  This is the default, left over from before DOS
::> filebuf::sh_none    This is basically the same as sh_compat except that
::> filebuf::sh_read    This means others can read, but not write the file.
::> filebuf::sh_write   This means others can write the file.
I just looked in the  header at the filebuf class definition;
none of the above were defined (BC45). Same with BCOS2. The help says this 
int 
value corresponds to the DOS sharing modes so I assume I could use the 
defines SH_DENYNO, SH_DENYWR, etc...  ?
FWIW, BC45 & BC2 says the default is filebuf::openprot; openprot is defined 
s
a static int in the class definition rather than a member of some enum.
::> At the risk of oversimplifying things too much to be useful, I'll
::> summarize file sharing very succintly: While you're modifying something
I understand file-sharing from C ; I just couldn't find the appropriate 
*values* to use for C++ fstreams. 
#  Herbert Bushong    harchon@centuryinter.net       [TEAM OS/2]    
-  Blackbeard's BBS   Intelec: 239:600/0            
+  Fido: 1:19/19      http://www.intelec.com/software/
---
   RM 1.31 2508   Sex is not a answer. Sex is a question. Yes is the answer
---------------
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.