CString Current ath;
GetModuleFileName(NULL,CurrentPath.GetBufferSetLength(MAX_PATH+1),MAX_PATH);
CurrentPath.ReleaseBuffer();
int pos = CurrentPath.ReverseFind('\\');
CurrentPath = CurrentPath.Left(pos);
运行以上程序即可获取当前路径
获取当前程序运行路径
最新推荐文章于 2024-04-17 09:41:14 发布