#include<windows.h>
char buffer[MAX_PATH];
GetModuleFileNameA(NULL, buffer, MAX_PATH);
std::string exePath(buffer);
std::string exeDirectory = exePath.substr(0, exePath.find_last_of("\\/"));
【Windows】获取exe目录
最新推荐文章于 2024-04-27 15:25:53 发布