diff --git a/MCA/MainFrm.cpp b/MCA/MainFrm.cpp index 2c6776a..528a05a 100644 --- a/MCA/MainFrm.cpp +++ b/MCA/MainFrm.cpp @@ -383,8 +383,9 @@ void CMainFrame::OnOptSave() CString szfile = fileDlg.GetPathName(); std::ofstream ofs(szfile); + std::string str = CStringA(pView->m_sSource); ofs << pView->m_nTime << std::endl; - ofs << pView->m_sSource << std::endl; + ofs << str.c_str() << std::endl; for (int i = 0; i < 1024; i++) ofs << i << ", " << pDoc->m_nChannelCount[i] << std::endl;