Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在C#程序中托管Eclipse程序_C#_Eclipse_Host - Fatal编程技术网

在C#程序中托管Eclipse程序

在C#程序中托管Eclipse程序,c#,eclipse,host,C#,Eclipse,Host,我是一名新的C#程序员。 我想在我的C#程序中托管eclipse程序,所以用户将打开我的程序,其中将是eclipse程序,所有这些都在一个窗口中。我尝试了以下代码,它适用于nodepad程序,但不适用于eclipse Process proc; // Start the process proc = Process.Start("C:\\eclipse/eclipse.exe"); proc.WaitForInputIdle();

我是一名新的C#程序员。 我想在我的C#程序中托管eclipse程序,所以用户将打开我的程序,其中将是eclipse程序,所有这些都在一个窗口中。我尝试了以下代码,它适用于nodepad程序,但不适用于eclipse

        Process proc;

        // Start the process
        proc = Process.Start("C:\\eclipse/eclipse.exe");
        proc.WaitForInputIdle();

        // Set the panel control as the application's parent
        SetParent(proc.MainWindowHandle, this.panel1.Handle);

        // Maximize application
        SendMessage(proc.MainWindowHandle, 274, 61488, 0);

如果您有任何帮助,我们将不胜感激。

尝试这一过程。Start(@“eclipsePath/eclipse.exe”,“您的文件路径”)

System.Diagnostics.Process.Start(“CMD.exe”,“/C”+fileZillaPath+“\\\\\”FileZilla Server.exe \“/reload config”);这段代码以前对我有用,注意有两个参数,第一个是CMD.exe,第二个是路径。我认为信用证也很重要。我想补充一下这个问题。代码是在eclipse程序中打开的,但与在记事本中打开的窗口不同。它在另一个窗口中打开eclipse。对不起,我没那么说。