Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: database Pin
Christian Graus24-Nov-02 15:17
protectorChristian Graus24-Nov-02 15:17 
GeneralRe: database Pin
Alexinuk25-Nov-02 3:15
Alexinuk25-Nov-02 3:15 
GeneralWINVER puzzle Pin
Antosha24-Nov-02 12:00
Antosha24-Nov-02 12:00 
Questionhelp!! how to pause a simulation? Pin
Anonymous24-Nov-02 9:45
Anonymous24-Nov-02 9:45 
GeneralDrive Properties Pin
georgiek5024-Nov-02 8:33
georgiek5024-Nov-02 8:33 
GeneralRe: Drive Properties Pin
Dominik Reichl24-Nov-02 8:43
Dominik Reichl24-Nov-02 8:43 
GeneralRe: Drive Properties Pin
georgiek5024-Nov-02 19:40
georgiek5024-Nov-02 19:40 
GeneralRe: Drive Properties Pin
Dominik Reichl25-Nov-02 1:15
Dominik Reichl25-Nov-02 1:15 
Another idea:

First step: Get the used size on the disk (capacity minus free space). Use this function:
BOOL GetDiskFreeSpaceEx(<br />
  LPCTSTR lpDirectoryName,                 // pointer to the directory name<br />
  PULARGE_INTEGER lpFreeBytesAvailableToCaller, // receives the number of bytes on<br />
                                                // disk available to the caller<br />
  PULARGE_INTEGER lpTotalNumberOfBytes,    // receives the number of bytes on disk<br />
  PULARGE_INTEGER lpTotalNumberOfFreeBytes // receives the free bytes on disk<br />
);


Second step: Every time you process a file, subtract its size from the space.

Now you can compute the remaining bytes to process. Set this into relation and make a nice status bar.

Big Grin | :-D
-Dominik
GeneralRe: Drive Properties Pin
georgiek5025-Nov-02 3:08
georgiek5025-Nov-02 3:08 
GeneralRe: Drive Properties Pin
georgiek5025-Nov-02 8:28
georgiek5025-Nov-02 8:28 
GeneralRe: Drive Properties Pin
Mike Nordell25-Nov-02 12:08
Mike Nordell25-Nov-02 12:08 
General[OpenGL] Problems with glGetString Pin
Dominik Reichl24-Nov-02 8:23
Dominik Reichl24-Nov-02 8:23 
GeneralRe: [OpenGL] Problems with glGetString Pin
Mike Nordell25-Nov-02 12:11
Mike Nordell25-Nov-02 12:11 
GeneralDrive Properties Pin
georgiek5024-Nov-02 5:44
georgiek5024-Nov-02 5:44 
QuestionYou must logon to download zip files?? Pin
Anonymous24-Nov-02 3:01
Anonymous24-Nov-02 3:01 
AnswerRe: You must logon to download zip files?? Pin
Christian Graus24-Nov-02 12:01
protectorChristian Graus24-Nov-02 12:01 
GeneralRe: You must logon to download zip files?? Pin
Anonymous24-Nov-02 23:51
Anonymous24-Nov-02 23:51 
GeneralRe: You must logon to download zip files?? Pin
Christian Graus25-Nov-02 1:26
protectorChristian Graus25-Nov-02 1:26 
GeneralRe: You must logon to download zip files?? Pin
Anonymous25-Nov-02 2:31
Anonymous25-Nov-02 2:31 
GeneralRe: You must logon to download zip files?? Pin
Christian Graus25-Nov-02 11:17
protectorChristian Graus25-Nov-02 11:17 
QuestionHow to learn Visual c++ Pin
woonkop24-Nov-02 1:12
woonkop24-Nov-02 1:12 
AnswerRe: How to learn Visual c++ Pin
Christian Graus24-Nov-02 1:46
protectorChristian Graus24-Nov-02 1:46 
GeneralRe: How to learn Visual c++ Pin
24-Nov-02 2:07
suss24-Nov-02 2:07 
GeneralRe: How to learn Visual c++ Pin
Christian Graus24-Nov-02 2:15
protectorChristian Graus24-Nov-02 2:15 
GeneralSplitter window problem Pin
trimtrom24-Nov-02 0:34
trimtrom24-Nov-02 0:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.