CFile::Open returns FALSE
Posted on 1998-05-11
I use the CFile class to read a file. This works fine! I can read the file. But: Open returns FALSE.
The TRACE macro prints "Can't open file filename, error = 0"!
fileException.m_cause = 0 means CFileException::none => No error occurred.
So whats wrong?
CFile *pcFile = new CFile();
if ( !pcFile->Open( lpszFileName, CFile::modeReadWrite | CFile::typeBinary ), &fileException )
TRACE( "Can't open file %s, error = %u\n", lpszFileName, fileException.m_cause );