CStdioFile issue! :(
-
Hello, i try to open a file with CStdioFile but fails any time when i try! I receive an error 11, and GetErrorMessage returns a "File Error > (11) "A Sharing Violation Occurred ..."" This is when i use VS2008, but the same function and same file with VS2005 works normal, without any errors!
CStdioFile pStdFileLocal;
if(!pStdFileLocal.Open(csFilePath, CFile::modeRead, &e))
{
// error handling ...
}Is there any change in VS2008 with files and file functions??? Thanks for any help! Arrin
-
Hello, i try to open a file with CStdioFile but fails any time when i try! I receive an error 11, and GetErrorMessage returns a "File Error > (11) "A Sharing Violation Occurred ..."" This is when i use VS2008, but the same function and same file with VS2005 works normal, without any errors!
CStdioFile pStdFileLocal;
if(!pStdFileLocal.Open(csFilePath, CFile::modeRead, &e))
{
// error handling ...
}Is there any change in VS2008 with files and file functions??? Thanks for any help! Arrin
-
Hello, i try to open a file with CStdioFile but fails any time when i try! I receive an error 11, and GetErrorMessage returns a "File Error > (11) "A Sharing Violation Occurred ..."" This is when i use VS2008, but the same function and same file with VS2005 works normal, without any errors!
CStdioFile pStdFileLocal;
if(!pStdFileLocal.Open(csFilePath, CFile::modeRead, &e))
{
// error handling ...
}Is there any change in VS2008 with files and file functions??? Thanks for any help! Arrin
All the processes reading the same file, must open in
CFile::shareDenyNone
mode. -
All the processes reading the same file, must open in
CFile::shareDenyNone
mode.