Hi all,

I have just been trying to compile a MASM32 project, but it is giving me an"undefined symbol error" for "HFILE_ERROR".

I was just wondering if anyone would happen to know what lib this comes from??

Cheers,

Brad.
Posted on 2003-06-11 04:02:23 by binary
come on ! someones gotta know what i'm talkin about here...? sorry i'm a complete asm n00b.

- Brad.
Posted on 2003-06-12 07:13:15 by binary
It's undefined, meaning that you're trying to use a constant that's not defined in an include file (i.e. .inc, not .lib). If this is a project that you've coded, than double-check that constant. If it's a project that someone else coded, that you're trying to compile, make sure that you've got all of the necessary includes that the original coder was using.


hope that helps,
will
Posted on 2003-06-12 10:33:39 by Will
Probably is equivalent to INVALID_HANDLE_VALUE but it's certainly not a Windows constant (not with an HFILE_ prefix anyway). Try setting it to -1 or post the context that it is used in.

HFILE_ERROR equ -1
Posted on 2003-06-12 11:20:24 by donkey
It's a constant from Win16. A return value for OpenFile. If OpenFile is not a C macro, it will eventually call CreateFile.
Posted on 2003-06-14 17:56:45 by tenkey