Progress bars... HELP!!!

This is a discussion on Progress bars... HELP!!! within the Windows Programming forums, part of the Platform Specific Boards category; Does anyone know how to integrate Status bars in a program that will show just how much has been saved, ...

sorry for the delay of my answer. I know this much, when a program saves, it loads a progress bar, and when it is just about finished, the progress bar is just about to the end. What I would like to do, is have a progress bar define for the user approximately how much time is left for the file to be sent via TCP/IP to another computer while being saved and printed at two different other computers. If you could please help, I would appreciate it.

So you are sending a file thru a socket?
You can get the file size if you have a HANDLE to it with GetFileSize(). As it is written to the socket in smallish amounts, depending on the buffer size you have set in setsockopt(). Each write can be timed using GetTickCount() and so by percentage the total time calculated.
Use the above lines to set the progressbar steps and create a static ctrl to display the time, remember to UpdateWindow() after changing the text to display the new text on screen.

Thanks for all of your help. I'll try that soon and will be back to inform you of my success. Hopefully all goes well. It could be a while because I have actually lost my entire program. My computer was in a fire, so if you would please bear with me as I try and regain what I have lost over the next few weeks. Thanks a lot though. Just in case you are wondering, I have a desktop and a laptop, my laptop is what is gone.