HRESULT CThreadCopyFrom::ProcessVirt() { UStringVector fileNames; CRecordVector<const wchar_t *> fileNamePointers; fileNames.Add(Name); fileNamePointers.Add(fileNames[0]); return FolderOperations->CopyFrom(PathPrefix, &fileNamePointers.Front(), fileNamePointers.Size(), UpdateCallback); };
void Process() { try { CProgressCloser closer(ProgressDialog); Result = FolderOperations->CopyFrom( MoveMode, FolderPrefix, &FileNamePointers.Front(), FileNamePointers.Size(), UpdateCallback); } catch(...) { Result = E_FAIL; } }