Parameter : filePath
return value : fileName
CString CFileDisperserDlg::GetFileName(CString filePath)
{
CString strResult;
filePath.Replace(_T("/"), _T("\\"));
int nPos = filePath.ReverseFind(_T('\\'));
if(nPos != -1)
{
strResult = filePath.Mid(nPos + 1);
}
else
{
strResult = filePath;
}
return strResult;
}
'개발' 카테고리의 다른 글
hyper V / CentOS / MySQL + Node js + express 설치 (0) | 2014.05.29 |
---|---|
CentOS[Linux] Node js+express 설치시 bash : express : command not found 일때 (0) | 2014.05.29 |
STL List 등에서 순차삭제 (0) | 2014.04.30 |
GetFileSize 파일 용량 측정 및 단위 생성 (0) | 2014.04.29 |
WELL 512 랜덤상수 생성 알고리즘 (0) | 2014.04.28 |