Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a VC++ MFC application which have one progress bar control and I am reding a file within for loop on click of a button and I put the progress bar control code setpos in the for loop and its working but don't need this particular time interval/after particular suppose 25 bytes progress bar should be incremented so how to do this please help..
Posted
Comments
[no name] 24-Mar-13 16:26pm    
I do not see any time interval, progress bar or file processing in any of the code that you posted that demonstrates your problem. After reading your non-question, I am not even sure what your problem even is.

1 solution

If you need to show the progress of the reading operation (I'm not sure I got you) then you have to know, in advance, the size of the file and then increment properly the progress bar.
For instance, if the file is 1000 bytes long then, every 10 bytes read you should increment the progress bar position of one unit.
 
Share this answer
 
Comments
Maciej Los 24-Mar-13 16:32pm    
Exactly!
+5!

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900