The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: raleeper on August 29, 2009, 11:14:42 AM

Title: HFILE_ERROR =-1?
Post by: raleeper on August 29, 2009, 11:14:42 AM
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

Title: Re: HFILE_ERROR =-1?
Post by: Tedd on August 29, 2009, 11:20:08 AM
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.
Title: Re: HFILE_ERROR =-1?
Post by: raleeper on August 30, 2009, 11:11:24 AM
Thamks Tedd.