Hello dear experts!
I've done recently the basic exercise of getting a file size using the standard Win32 function GetFileSizeEx. It returns fine up to 2GB (included), and that was good enough for what I need.
I've tried , just to test, to get file sizes larger than than, in the max 64 bit representation spectrum. I've used this time another method to get the file information from its structure. This structure stores the lower and the upper file size in two int32. I've casted both in _int64, then shifted the upper with 32 positions to the left (<<32), then made an addition of the two into an _int64. And got a bad result, different from the real one. Additional question: does itoa() applies also for int64?
Many thanks!



LinkBack URL
About LinkBacks


