The information in this article applies to:
SYMPTOMS
An attempt to set the status of a file using the function CFile::SetStatus
results in a CFileException. If you do not have an exception handler
defined, the result will depend on what the target type for the application
is:
CAUSE
This behavior occurs whenever the CFileStatus member m_mtime is nonzero.
There is a coding problem that incorrectly throws an exception when
updating the file time.
RESOLUTION
To work around this problem, update the Microsoft Foundation Class (MFC)
library files by making a modification to the MFC source file FILEST.CPP.
Remove the semicolon from the end of the "if" statement in line 134:
to the following:
You must then rebuild the MFC libraries. For more information on
building these library files, refer to:
-or- Run the NMAKE command from the \MSVCNT\MFC\SRC directory. The debug version:
The release version:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Microsoft Visual C++ 32-bit Edition, version 2.0. Additional query words:
Keywords : kbFileIO kbMFC kbVC |
Last Reviewed: September 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |