Archived

This topic is now archived and is closed to further replies.

Variable with the size of (long * long) and disk space determination

This topic is 5514 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to be able to store the bytes written to disk in a variable, however, a long won't do. So I figured if I had the size of (long * long) I would be able to store enough bytes. Also, how can I use the Windows API to determine how much diskspace there is free? If you wonder why I can't do with 2 million or 4.2 million, I am writing a DiskSweeper. It writes 5 times random data into a file. However I want to show the user a sort of progress and how much data there is done. Sand Hawk ---------------- -Earth is 98% full. Please delete anybody you can.
My Site [edited by - Sand_Hawk on November 5, 2002 3:46:12 PM]

Share this post


Link to post
Share on other sites
ChaosEngine: That last one won''t work, because you can only define custom variables types with a custom bit length inside a struct and they need to align to 8 bits.

DeanHarding: Thanks, I will work on it when I get home

----------------
-Earth is 98% full. Please delete anybody you can.


My Site

Share this post


Link to post
Share on other sites