File Copy with Progress Bar, please help

Started by
-1 comments, last by JJ1 22 years, 4 months ago
Hi, I am quite new to C++ but I need to write a small simple app. The Application must simply copy files from CD to hard disk, and display a dialog box with a progress bar of the filecopy operation, as they are large files. Using vc++ 6, I have started a new project with the MFC AppWizard(exe), to quickly create a dialog box and I have added a progress bar. I realise that I should use CopyFileEx() (or perhaps CopyFolder as there are more than one file) and CopyProgressRoutine, API functions to link to the progress bar(as CopyFile does not make a callback). Though as i am new to C++, i do not understand their syntax definition and how to implement them within the program and link them to the progress bar.(I have already looked at the msdn library explaination, but I''m still totally lost!) I havn''t found a way of doing this after looking through many sites/books , most seem to just explain how to make the progress bar move. I''m sure there must be a simple answer to this, so I would appreciate any help/explainations/source code.. or failing that - names of books i should go and read or links to sites with tutorials. Please help, thankyou very much

This topic is closed to new replies.

Advertisement