Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.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# 4.0 同一机器上的进程间通信 使用系统; 使用系统诊断; 命名空间csharp_station.howto { /// ///演示如何从C启动另一个程序# /// 类别份额 { 公共INTA; 公共int b; } 类ProcessStart { 静态void Main(字符串[]参数) { share share1=新的share(); 1.a=90; share1.b=100; Process console36=新流程(); console36.StartInfo.FileName=@“e:\\ConsoleApplication36.exe”; console36.Start(); } } }_C# 4.0_Inter Process Communicat - Fatal编程技术网

C# 4.0 同一机器上的进程间通信 使用系统; 使用系统诊断; 命名空间csharp_station.howto { /// ///演示如何从C启动另一个程序# /// 类别份额 { 公共INTA; 公共int b; } 类ProcessStart { 静态void Main(字符串[]参数) { share share1=新的share(); 1.a=90; share1.b=100; Process console36=新流程(); console36.StartInfo.FileName=@“e:\\ConsoleApplication36.exe”; console36.Start(); } } }

C# 4.0 同一机器上的进程间通信 使用系统; 使用系统诊断; 命名空间csharp_station.howto { /// ///演示如何从C启动另一个程序# /// 类别份额 { 公共INTA; 公共int b; } 类ProcessStart { 静态void Main(字符串[]参数) { share share1=新的share(); 1.a=90; share1.b=100; Process console36=新流程(); console36.StartInfo.FileName=@“e:\\ConsoleApplication36.exe”; console36.Start(); } } },c#-4.0,inter-process-communicat,C# 4.0,Inter Process Communicat,现在我想在ConsoleApplication35.exe中创建的ConsoleApplication36.exe中使用对象share1。 我该怎么做?请给我发送ConsoleApplication36.exe的代码 可用于进程间通信。 另一种选择是,如果这是一个足够的解决方案,则在启动流程时通过 你能给我一些提示吗?有可能吗?? using System; using System.Diagnostics; namespace csharp_station.howto { /// &l

现在我想在ConsoleApplication35.exe中创建的ConsoleApplication36.exe中使用对象share1。 我该怎么做?请给我发送ConsoleApplication36.exe的代码

可用于进程间通信。
另一种选择是,如果这是一个足够的解决方案,则在启动流程时通过

你能给我一些提示吗?有可能吗??
using System;
using System.Diagnostics;
namespace csharp_station.howto
{
    /// <summary>
    /// Demonstrates how to start another program from C#
    /// </summary>
    class share
    {
        public int a;
        public int b;
    }

    class ProcessStart
    {
        static void Main(string[] args)
        {

            share share1 = new share();
            share1.a = 90;
            share1.b = 100;
            Process console36 = new Process();

            console36.StartInfo.FileName = @"e:\\ConsoleApplication36.exe";

            console36.Start();
        }
    }
}