#include <atlbase.h> //头文件
//获取当前dll的路径
string GetProgramPath(){
char filePath[MAX_PATH];
GetModuleFileNameA(_AtlBaseModule.GetModuleInstance(), filePath, MAX_PATH);
std::string strDllPath(filePath);
strDllPath = strDllPath.substr(0, strDllPath.find_last_of("\\") + 1);
return strDllPath;
}

被折叠的 条评论
为什么被折叠?



