I am making a program that reads a file, does its calculations, and outputs the calculations.
The filenames are stored in a series of std::vectors and the program goes through each one until it is finished.
While this is happening, a dialog with a CProgressCtrl variable is displayed to indicate the progress of the process, calling StepIt() every time a file is finished outputting the file.
However, it does not depict an accurate progression as it continually shows a complete bar and then an empty bar again which continues to progress to a complete bar then empties again.
I am initialising the range like this:
int max = vector1.size() + vector2.size() + vector3.size();
ProgressBar.SetRange( 0 , max );
If someone can tell me what I am doing wrong, it would be greatly appreciated.