I have a code ( a logger) which open file (and keeps it open). The file is supposed to be shared with other application - for read and write permission.
Here is a constructor :
fstream( filename, (std::fstream::in | std::fstream::out | std::fstream::app), ios_base::_Openprot)
File is correctly opened; the program keeps it open and add message, all okay up to this point.
Problem is that the file is not fully shared with other applications. Other application can read it but cannot write to file, while the file is opened by the first application.
The sh_read, sh_write ... are not members of filebuf anymore so it cannot be used. The only protection parameter which I was able to find is the ios_base::_Openprot, but it does not work, too.