Click here to Skip to main content
11,929,166 members (52,743 online)
Rate this:
Please Sign up or sign in to vote.
See more: MFC API VisualC++
I have a list of files. I want to calculate total amount of space required by these files. For that, I have to calculate folder size. After the calculation of total size of file; I want to know how much free space is available at the destination. Then draw 3D Pie Chart for Required and Available spaces. I'm using VC++ 2010 MFC application. so my questions are:

1. How to calculate size of folder without all recursion?
2. How to get destination drive space?
3. How to draw attractive 3D Pie Charts in VC++ MFC?
Posted 27-Mar-12 9:26am
Edited 27-Mar-12 11:40am
wizardzz 27-Mar-12 16:40pm
What have you tried?
Sumit Makhe 28-Mar-12 12:09pm
GetFileSize API in recursion but it takes too much time. As I mentioned I have list of files so it takes too much time to load (using this code in paint method)
wizardzz 28-Mar-12 12:11pm
You might want to try posting your code.
Sumit Makhe 28-Mar-12 12:15pm
is there any API or Shell function to get folder size? I will upload my code tonight

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 27 Mar 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100