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?
Drives less than 10gig display correctly but 10 gig or over
i get garrbage from StrToFloat.
Any ideas?
Greg,
The data to store the result is defined in MSDN as,
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
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