The information in this article applies to:
SYMPTOMSYou get the following error when calling CFile::Read(): If run under the Microsoft Visual C++ debugger, you will see the following error:
CAUSEYou are actually opening the file without read access. The following intuitively correct code causes the error:
RESOLUTIONSpecify CFile::modeReadWrite instead of the logical OR of CFile::modeRead and CFile::modeWrite. STATUSThis behavior is by design. REFERENCESFor more information about CFile, or other MFC classes, consult the Microsoft Visual C++ online help. © Microsoft Corporation 1998, All Rights Reserved. Additional query words: kbvc400 kbvc500 kbvc600
Keywords : kberrmsg kbCodeGen |
Last Reviewed: January 25, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |