である私の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
ました。私は何をすべきか?