Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MFC VC++
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 10:54am
debarunb1.1K
Comments
ThePhantomUpvoter at 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
good
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.
  Permalink  
Comments
Maciej Los at 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)

  Print Answers RSS
0 OriginalGriff 490
1 Maciej Los 305
2 Richard MacCutchan 270
3 Mathew Soji 220
4 BillWoodruff 210
0 OriginalGriff 8,834
1 Sergey Alexandrovich Kryukov 7,477
2 DamithSL 5,689
3 Maciej Los 5,329
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web04 | 2.8.1411028.1 | Last Updated 24 Mar 2013
Copyright © CodeProject, 1999-2014
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