현재폴더경로1 C++, MFC 현재 프로젝트, 실행파일 실행한 경로 가져오기. 현재 프로젝트, 실행파일 실행한 경로 가져오는 방법.. 저도 구글링 해서 찾은건데 이게 제일 편한것 같아요. MFC 하실때 그냥 복붙으로 쓰셔서 테스트 해보시고, 응용하세여~ TCHAR chFilePath[256] = { 0, }; GetModuleFileName(NULL, chFilePath, 256); CString strFolderPath(chFilePath); strFolderPath = strFolderPath.Left(strFolderPath.ReverseFind('\\')); AfxMessageBox(strFolderPath); 설명은 그냥 GetModuleFileName 에서 이미 파일 경로를 다 가져오구요. strFolderPath는 chFilePath 에 들어간 파일 경로를 출력할때 눈.. 2022. 1. 19. 이전 1 다음