[Lazarus] INVALID_* consts

Alberto Narduzzi albertonarduzzi at yahoo.com
Mon Jun 3 20:27:44 CEST 2013


> what can we do about INVALID_FILE_SIZE?
>
> const
> INVALID_FILE_SIZE = DWORD($FFFFFFFF);
>
> is the above correct? it would seem to be from what i can make out from
> MSDN and the various C code files i've found it defined in...
>
> i kind of have to laugh because on place i read spoke of examples
> checking the result directly instead of using INVALID_FILE_SIZE and that
> this was not good coding practice because m$ might change the value of
> INVALID_FILE_SIZE at any time which would then break all of that code...
> i makes sense to me O:)
>

what is the purpose/meaning of INVALID_FILE_SIZE on first instance, I 
may ask...

Cheers, A.




More information about the Lazarus mailing list