::NPTEAM:: Network Programer Team

검색 :
RSS 구독 : 글 / 댓글 / 트랙백 / 글+트랙백

[VC++] 전체 파일 경로에서 파일명 제거

// 전체 경로에서 파일명을 제거한 경로 추출   
CString filepath_only;
UINT nIndex = 0, nLength = 0;

nLength = filename.GetLength();
nIndex = filepath.Find( filename, 0 );
filepath_only = filepath;
filepath_only.Delete( nIndex , nLength )
 
2006/05/13 23:23 2006/05/13 23:23

맨 위로