获取程序自身路径 string GetDllPath() { string DllPath; char path[260]; GetModuleFileNameA(_AtlBaseModule.GetModuleInstance(), path, 260); DllPath = path; DllPath = DllPath.substr(0, DllPath.find_last_of("\\/")); return DllPath; {