본문 바로가기

Windows/MFC

GetShortPathName 폴더, 디렉토리 이름 줄이기

[code]
char strShortPath[MAX_PATH];
memset(strShortPath, 0x00, sizeof(strShortPath));

// 짧은 패스를 만들어주기 위해서 작업중.
GetShortPathName((LPCTSTR)m_szFileFullPath, strShortPath, MAX_PATH);
m_szFileShortPath = (CString)strShortPath;
[/code]