I am getting the drive sizes using GetDiskFreeSpaceEx.
Drives less than 10gig display correctly but 10 gig or over
i get garrbage from StrToFloat.

Any ideas?
Posted on 2002-06-17 11:23:53 by gfalen
Greg,

The data to store the result is defined in MSDN as,


PULARGE_INTEGER lpTotalNumberOfFreeBytes // receives the free bytes on disk

So using a floating point calculation is probably not correct here. I don't have a spec handy but I guess that the data type "PULARGE_INTEGER" is a 64 bit integer, not a REAL8 size.

Regards,

hutch@movsd.com
Posted on 2002-06-18 00:22:26 by hutch--