所以,我最近开始尝试使用一个 XNA 程序来启动另一个 XNA 程序。我一直在使用“Process.Start”的普通方法,在打开 Firefox 或 Media Player 时效果很好。但是,每当我尝试启动任何 XNA 程序(我已经尝试了几个)时,我都会收到错误消息“找不到合适的图形卡。无法创建图形设备。该程序需要像素着色器 1.1 和顶点着色器 1.1。” 当图形设备无法处理 XNA 时,我认为这是错误,但这不是问题所在,因为我已经开始运行 XNA。
我的代码目前如下所示:
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = Stat.clientfile;
process.StartInfo.Arguments = "";
process.StartInfo.LoadUserProfile = true;
process.StartInfo.UseShellExecute = false;
process.StartInfo.WorkingDirectory = Stat.clientfile.Remove(Stat.clientfile.Length - 1 - Stat.clientfile.Split(Convert.ToChar(@"\"))[Stat.clientfile.Split(Convert.ToChar(@"\")).Length - 1].Length);
process.StartInfo.RedirectStandardOutput = true;
Stat.MessageBox(process.StartInfo.WorkingDirectory);
process.Start();
但那是在尝试了Process.Start(filename)
我能想到的几乎所有添加之后。如果这意味着什么,我正在 Acer 上网本上运行 XNA 3.1 版。
如果有人理解这有什么问题,我们将不胜感激您的帮助!