The information in this article applies to:
SUMMARYThe following functions are provided by the Microsoft C Run-time Library (CRT) and the Windows API to create a file:
These return types (HFILE, int, and FILE *) are not compatible, so they can
not be used in a function which is expecting the other type. The HFILEs are
handles to operating system files (MS-DOS file handles), the ints are CRT
file handles, and the FILE *s are pointers to structures which represent a
CRT stream.
For files opened with OpenFile(), _lopen, and _lcreat, the common file manipuluation routines that you should use are: _lcloseFor files opened with _open() and _creat(), the common file manipulation routines that you should use are: _closeFor files opened with fopen, the common file manipulation routines that you should use are: fcloseFor other input and output functions, please check the documentation for information on whether they are intended for use with MS-DOS handles (HFILE), streams (FILE *), or low-level I/O (int). MORE INFORMATION
An application should use the OpenFile() API any time an MS-DOS file handle
is required.
Additional query words: 3.00 3.10
Keywords : kb16bitonly |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |