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