delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/04/00:33:09

From: "Damien" <damien@%poe.org>
Newsgroups: comp.os.msdos.djgpp
Subject: C++ file sharing
Date: 1 Sep 1997 01:48:23 GMT
Organization: Beyond Reality
Lines: 16
Message-ID: <01bcb678$a94da4e0$548562cf@damien>
NNTP-Posting-Host: phx-ts19-19.goodnet.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hey everyone.  I'm trying to figure out how to format my fstream-style open
statements to implement some file protection.  Under MSVC++ I could do it
like this:

infile.open("filename.ext", ios::in | ios::binary, filebuf::sh_read);

to allow read-only access while I have it open.  From grepping the header
files, DJGPP has a filebuf class.  I must be using it wrong, though.  I'd
appreciate any help I can get on this.

-- 
  -=Damien=-
damien@%poe.org
( remove the % to reply... no spambots allowed)
http://www.goodnet.com/~ej70339/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019