본문 바로가기

카테고리 없음

mfc 현재 파일 경로


// 실행파일 경로

char programpath[_MAX_PATH];          

GetModuleFileName( NULL, programpath, _MAX_PATH);


// 현재 폴더 경로

GetCurrentDirectory( _MAX_PATH, programpath);

실행파일 경로는 실행파일까지 들어간 Full Path임.