HowTo: Display progress dialog using IFileOperation
I’m trying to get a progress dialog to display for my copy operation in some sample code. I’m using IFileOperation because I found that using SHFileOperation will not display a progress dialog if the files have already been copied to the target location. My hope is that IFileOperation is a little more sophisticated and can handle that situation. Here’s the sample code I’ve tried…. CComPtr<IOperationsProgressDialog> opProgressDlg; HRESULT hr = opProgressDlg.CoCreateInstance(CLSID_ProgressDialog); CComPtr<IFileOperation> fileOp; hr = fileOp.CoCreateInstance(CLSID_FileOperation); hr = fileOp-