CString Current ath;
GetModuleFileName(NULL,CurrentPath.GetBufferSetLength(MAX_PATH+1),MAX_PATH);
CurrentPath.ReleaseBuffer();
int pos = CurrentPath.ReverseFind('\\');
CurrentPath = CurrentPath.Left(pos);
运行以上程序即可获取当前路径
CString Current ath;
GetModuleFileName(NULL,CurrentPath.GetBufferSetLength(MAX_PATH+1),MAX_PATH);
CurrentPath.ReleaseBuffer();
int pos = CurrentPath.ReverseFind('\\');
CurrentPath = CurrentPath.Left(pos);
运行以上程序即可获取当前路径