获取当前Dll文件名
//获取当前Dll文件名 string GetModuleDLLFileName() { char szBuff[1024] = {0}; HMODULE hModuleInstance = _AtlBaseModule.GetModuleInstance(); GetModuleFileNameA(hModuleInstance,szBuff, 1024); string strModuleName = szBuff; strModuleName = strModuleName.substr(strModuleName.find_last_of("\\")+1, strModuleName.find_last_of(".")-(strModuleName.find_last_of("\\")+1)); return strModuleName; }
标签:last,文件名,strModuleName,szBuff,Dll,NX,二次开发,find From: https://www.cnblogs.com/KMould/p/16987713.html