Index: src/ch/StatusDlg.cpp =================================================================== diff -u -N -r70a5190f19728f132697e58b01599b46a5ca7f7e -r2fe97a93f21771d75901d4b6559057d1ea055104 --- src/ch/StatusDlg.cpp (.../StatusDlg.cpp) (revision 70a5190f19728f132697e58b01599b46a5ca7f7e) +++ src/ch/StatusDlg.cpp (.../StatusDlg.cpp) (revision 2fe97a93f21771d75901d4b6559057d1ea055104) @@ -1005,14 +1005,14 @@ if(strCurrentPath.IsEmpty()) strCurrentPath = GetResManager().LoadString(IDS_NONEINPUTFILE_STRING); - lvi.pszText = (PTSTR)(PCTSTR)strCurrentPath;; + lvi.pszText = (PTSTR)strCurrentPath.c_str();; lvi.cchTextMax = lstrlen(lvi.pszText); m_ctlStatusList.SetItem(&lvi); // destination path lvi.iSubItem = 2; chcore::TString strDestinationPath = spTaskStats->GetDestinationPath(); - lvi.pszText = (PTSTR)(PCTSTR)strDestinationPath; + lvi.pszText = (PTSTR)strDestinationPath.c_str(); lvi.cchTextMax = lstrlen(lvi.pszText); m_ctlStatusList.SetItem(&lvi); @@ -1097,7 +1097,7 @@ if(strPath.IsEmpty()) strPath = GetResManager().LoadString(IDS_NONEINPUTFILE_STRING); - GetDlgItem(IDC_SOURCEOBJECT_STATIC)->SetWindowText(strPath); // src object + GetDlgItem(IDC_SOURCEOBJECT_STATIC)->SetWindowText(strPath.c_str()); // src object SetBufferSizesString(spTaskStats->GetCurrentBufferSize(), spSubTaskStats->GetCurrentBufferIndex()); } @@ -1145,9 +1145,9 @@ m_ctlTaskCountProgress.SetProgress(spTaskStats->GetProcessedCount(), spTaskStats->GetTotalCount()); m_ctlTaskSizeProgress.SetProgress(spTaskStats->GetProcessedSize(), spTaskStats->GetTotalSize()); - GetDlgItem(IDC_DESTINATIONOBJECT_STATIC)->SetWindowText(spTaskStats->GetDestinationPath()); + GetDlgItem(IDC_DESTINATIONOBJECT_STATIC)->SetWindowText(spTaskStats->GetDestinationPath().c_str()); GetDlgItem(IDC_THREADPRIORITY_STATIC)->SetWindowText(GetResManager().LoadString(IDS_PRIORITY0_STRING + PriorityToIndex(spTaskStats->GetThreadPriority()))); - GetDlgItem(IDC_TASKID_STATIC)->SetWindowText(spTaskStats->GetTaskName()); + GetDlgItem(IDC_TASKID_STATIC)->SetWindowText(spTaskStats->GetTaskName().c_str()); } void CStatusDlg::SetWindowTitle(PCTSTR pszText)