Click here to Skip to main content
11,921,479 members (62,389 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
0 OriginalGriff 553
1 Dave Kreskowiak 245
2 phil.o 160
3 KrunalRohit 134
4 Sergey Alexandrovich Kryukov 132
0 OriginalGriff 6,951
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,171
3 George Jonsson 2,840
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web02 | 2.8.151120.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