Full Path로 디렉토리 만들기

=================
CTRL+C, CTRL+V
=================
- 자신이 고민하여 만들어보았거나, 내용을 충분히 이해하고 사용해야겠습니다. ^^;
   . 내공부족, 절대허덕, 복사지존


void CTest...::Test...()
{
   CString strFullPath = _T("D:\\Test\\TestBub\\2009");
   if(MakeFullPathDirectory(strFullPath))
      // ... ... To Do ... ...
}

BOOL CTest...::MakeFullPathDirectory(CString strFullPath)
{
   int nLoop = -1;
   CString strMakeFolder = _T("");
   strMakeFolder = strFullPath;

   nLoop = strMakeFolder.Find("\\", 0);
   while((nLoop = strMakeFolder.Find("\\", nLoop + 1)) >= 0)
      ::CreateDirectory(strMakeFolder.Left(nLoop), NULL);

   ::CreateDirectory(strMakeFolder, NULL);

   return TRUE;
}

이 글과 관련있는 글을 자동검색한 결과입니다 [?]

by 데들리엔젤 | 2009/03/13 15:09 | VC++ | 트랙백 | 덧글(0)

트랙백 주소 : http://eocs.egloos.com/tb/1405783
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

◀ 이전 페이지다음 페이지 ▶