C++/(MFC)경로 저장시 \ 문자 추가

  1. void CC3AllPathContentsFinderDlg::parseAt(CString& str)
  2. {
  3.     for(int i = 0; i < str.GetLength(); ++i)
  4.     {
  5.         if (str.GetAt(i) == '\\')
  6.         {
  7.             str.Insert(i++, '\\');
  8.         }
  9.     }
  10. }

C:\PortQryUI\ -> C:\\PortQryUI\\

이 글에는 0 개의 댓글이 있습니다.