Ok, I think I've posted this question before but it never got replied to. My problem is that I want to open a file with read and write sharing, using a std::ifstream, but I can't. I've seen in about 99999 places on the web, tutorials, books, MSDN, everywhere, this:
std::ifstream file("filename.txt", ios::in, filebuf::sh_read);
BUT, sh_read isn't a member of std::filebuf and I don't have just filebuf::sh_read because I'm using the new header, i.e. <fstream> instead of <fstream.h>. Including <fstream.h> as well allows me to use sh_read but then there are "no constructors that take 3 arguments" :mad: Is shared access even supported anymore, or was it supported to begin with?? And do I have to convert all my code to using Windows API files?