CString strPath; GetCurrentDirectory(MAX_PATH,strPath.GetBuffer(MAX_PATH)); strPath.ReleaseBuffer(); return strPath; 转载于:https://www.cnblogs.com/yjm0105/archive/2005/05/12/154018.html