News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

HFILE_ERROR =-1?

Started by raleeper, August 29, 2009, 11:14:42 AM

Previous topic - Next topic

raleeper

Can anyone verify that HFILE_ERROR (the failure return from OPENFILE)  = -1?

Or better yet, provide a source for the library file that defines it.

Or even better, advise that windows 95 and later are not 16-bit versions of Windows.

(I want my program to be compatible with windows 98 and assume that would include W95, but I don't care about previous versions).

Thanks,

raleeper
ral@raleeper.com


Tedd

Yes, it's equal to -1.
However, you should be using CreateFile instead - it does work fine on Win98.

Win95/98 are 32-bit, but they have a lot of underlying 16-bit support.
No snowflake in an avalanche feels responsible.

raleeper