Click here to Skip to main content
11,806,350 members (65,926 online)
Rate this: bad
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 8:26am
Edited 27-Mar-12 10:40am
(no name)105.1K
wizardzz at 27-Mar-12 16:40pm
What have you tried?
Sumit Makhe at 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 at 28-Mar-12 12:11pm
You might want to try posting your code.
Sumit Makhe at 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
0 Richard Deeming 205
1 Sergey Alexandrovich Kryukov 170
2 ppolymorphe 145
3 OriginalGriff 135
4 Abhinav S 120
0 OriginalGriff 3,330
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,905
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web03 | 2.8.151002.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