获取程序运行路径
//定义路径
TCHAR m_strProRunPath[MAX_PATH];
GetModuleFileName(AfxGetInstanceHandle(), m_strProRunPath, MAX_PATH); //exe
PathRemoveFileSpec(m_strProRunPath);
获取程序运行路径
//定义路径
TCHAR m_strProRunPath[MAX_PATH];
GetModuleFileName(AfxGetInstanceHandle(), m_strProRunPath, MAX_PATH); //exe
PathRemoveFileSpec(m_strProRunPath);