0
在我的C++應用程序,這是一個.exe
一個應用程序,我有這樣的:C#調用使用命令行
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
。我該怎麼辦?