The information in this article applies to:
SYMPTOMSWhen you port MFC applications that use CFile from Windows version 3.1 to Windows NT or Windows 95, you may encounter problems related to use of the m_hFile member variable. CAUSE
In all versions of MFC, CFile:: m_hFile is defined as a UINT. In the 16-bit
versions of MFC (versions 2.0 and 2.5x), m_hFile is a HANDLE that is
created from a call to the C Runtime Library (CRT) function _dos_open(). In
this case, other CRT functions that use the handle, such as _eof(), work
correctly.
RESOLUTION
If your MFC application must use functions outside of the CFile class to
obtain the functionality you need, note these differences and use
compatible functions.
REFERENCESPlease see your online documentation for more information on compatible functions. Additional query words: 4.00 4.0 95 2.00 2.10 2.50 2.51 2.52 3.00 3.10 3.20 m_hFile
Keywords : kbMFC kbVC |
Last Reviewed: September 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |