[Lazarus] INVALID_* consts

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jun 3 21:38:15 CEST 2013


On Mon, 03 Jun 2013 22:27:45 +0300
Alberto Narduzzi <albertonarduzzi at yahoo.com> wrote:

> >
> > all i can do is point to the links i just posted to mattias where it is
> > defined and routines are shown with how to use it...
> 
> Uh... I just went through the first 2 or 3 links and the amount of crap 
> I found is unbelievably enormous.
> 
> Why the hell should I consider 4 platforms on 2 architectures; then 
> check the result whether I passed or not a NULL pointer to... ehm, well, 
> just get the f***ing size of a file???? This, I am sorry, is out of my 
> imagination scope.

You can use "FileSizeUTF8" of unit LazFileUtils.

function FileSizeUtf8(const Filename: string): int64;

Negative result for failure.
 
> God bless the one libc (end its ports, where possible, clean and 
> working). full stop.


Mattias




More information about the Lazarus mailing list