std::string GetFilePath()
{
char
exepath[MAX_PATH];
std::string
strdir,tmpdir;
memset(exepath,0,MAX_PATH);
GetModuleFileName(NULL,exepath,MAX_PATH);
tmpdir=exepath;
strdir=tmpdir.substr(0,tmpdir.rfind(‘\\‘));
strdir
+= "\\";
return strdir;
}
时间: 2024-10-05 05:07:04