0

である私のC++アプリでは、これがあり.exeます:

int main(int argc, char** argv){
--argc;
++argv;
if (argc != 1){
    throw std::exception("Bad command line.");
}

しかし、C# (WPF) アプリでそれをどのように呼び出すのでしょうか? 私は試しSystem.Diagnostics.Process.Start("pathofapp.exe", "stringiwantedtouse")ましたが、得Bad Command Lineました。私は何をすべきか?

4

2 に答える 2

0
System.Diagnostics.Process.Start("pathofapp.exe", "stringiwantedtouse")
于 2013-12-15T12:11:24.540 に答える