WCHAR szCurrentPath[MAX_PATH] = {0,}; // 1. GetModuleFileName(NULL, szCurrentPath, MAX_PATH); // 실행 파일 // 2. GetCurrentDirectory(MAX_PATH, szCurrentPath); // 실행 경로
1. c:\SomeProgram\bin\SomeProgram.exe 2. c:\SomeProgram\bin
C++
Win32API
경로
Retrieved from https://hyacinth.kr:443/moniwiki/wiki.php/C++/(MFC)현재 프로그램 실행 위치
last modified 2023-05-12 13:32:40