Click here to Skip to main content
16,007,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hash_map in C++ 7? Pin
Tim Smith11-Apr-02 16:26
Tim Smith11-Apr-02 16:26 
GeneralRe: hash_map in C++ 7? Pin
Mike Nordell11-Apr-02 16:58
Mike Nordell11-Apr-02 16:58 
GeneralRe: hash_map in C++ 7? Pin
Mike Nordell11-Apr-02 16:56
Mike Nordell11-Apr-02 16:56 
GeneralRe: hash_map in C++ 7? Pin
Christian Graus11-Apr-02 17:33
protectorChristian Graus11-Apr-02 17:33 
GeneralUtilizing the CProgressCtrl :: MFC Pin
valikac11-Apr-02 13:54
valikac11-Apr-02 13:54 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
Christian Graus11-Apr-02 14:19
protectorChristian Graus11-Apr-02 14:19 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
valikac11-Apr-02 15:32
valikac11-Apr-02 15:32 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
Roger Allen12-Apr-02 3:05
Roger Allen12-Apr-02 3:05 
In one of my apps, I have a repetative task that takes a certain amount of time. I need a progress on the individual task and an overall task. What I do is estimate how long the single task will take and actually measure the time it took. That way I update the estimate for the next run and I get a very accurate estimate of the total time.


As your using an example of a file, in a loop you can get the current file pointer, devide it by the length of the file and * 100 to get a current %age position (this sets the progress control). If you also took the system time at the start of the process, you can work out how long it took to get to the current %age and extrapolate to 100%. You can then subtract the elapsed time to get an estimate of time remaining.




Roger Allen
Sonork 100.10016

yet to be identified being from the planet Paltinmoriumbanfrettybooter
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
valikac12-Apr-02 4:49
valikac12-Apr-02 4:49 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
Ravi Bhavnani12-Apr-02 5:09
professionalRavi Bhavnani12-Apr-02 5:09 
GeneralLink Problem Pin
albean11-Apr-02 12:38
albean11-Apr-02 12:38 
GeneralRe: Link Problem Pin
Ravi Bhavnani11-Apr-02 13:01
professionalRavi Bhavnani11-Apr-02 13:01 
GeneralTrial-version Pin
11-Apr-02 12:34
suss11-Apr-02 12:34 
GeneralRe: Trial-version Pin
Christian Graus11-Apr-02 13:02
protectorChristian Graus11-Apr-02 13:02 
GeneralValid e-mail address Pin
Ola Carlsson11-Apr-02 12:08
Ola Carlsson11-Apr-02 12:08 
GeneralRe: Valid e-mail address Pin
Christian Graus11-Apr-02 12:13
protectorChristian Graus11-Apr-02 12:13 
GeneralRe: Valid e-mail address Pin
ColinDavies11-Apr-02 12:25
ColinDavies11-Apr-02 12:25 
GeneralRe: Valid e-mail address Pin
Ravi Bhavnani11-Apr-02 12:27
professionalRavi Bhavnani11-Apr-02 12:27 
GeneralRe: Valid e-mail address Pin
Christian Graus11-Apr-02 12:40
protectorChristian Graus11-Apr-02 12:40 
GeneralRe: Valid e-mail address Pin
Ravi Bhavnani11-Apr-02 12:44
professionalRavi Bhavnani11-Apr-02 12:44 
GeneralRe: Valid e-mail address Pin
Jon Hulatt11-Apr-02 23:26
Jon Hulatt11-Apr-02 23:26 
GeneralCaveat! Pin
Ravi Bhavnani11-Apr-02 12:30
professionalRavi Bhavnani11-Apr-02 12:30 
GeneralRe: Caveat! Pin
Alexandru Savescu11-Apr-02 12:45
Alexandru Savescu11-Apr-02 12:45 
GeneralErasing elements in a stl container of pointers Pin
Alexandru Savescu11-Apr-02 11:46
Alexandru Savescu11-Apr-02 11:46 
GeneralRe: Erasing elements in a stl container of pointers Pin
Christian Graus11-Apr-02 12:12
protectorChristian Graus11-Apr-02 12:12 

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.