Click here to Skip to main content
13,052,163 members (37,467 online)
Rate this:
Please Sign up or sign in to vote.
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 24-Mar-13 9:54am
ThePhantomUpvoter 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Maciej Los 24-Mar-13 16:32pm

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 24 Mar 2013
Copyright © CodeProject, 1999-2017
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