Link to home
Start Free TrialLog in
Avatar of steva
steva

asked on

Mapping progress of CopyFile to a Progress Control

An MFC Dialog button in my installation code starts a copy of some large files via CopyFile() and I'd like to show the progress of the copy in a Progress bar.  Does CopyFile() or the system provide a variable I can map to the Progress Control?

Thanks for any help.
Steve
SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of steva
steva

ASKER

I tried using the SHFileOperation() routine but found it flakey. It wouldn't recognize the source file on the floppy if I specified a label in sfo.lpszProgressTitle, and sometimes hit an access error during the copy.  CopyFile(), on the other hand, works everytime with no problems.  I just don't trust SHFileOperation() enough to use it.

All three comments were great, though,  and helped me through this so I spit the points.

Thanks for your help.

Steve