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(); } } }
现在我想在ConsoleApplication35.exe中创建的ConsoleApplication36.exe中使用对象share1。 我该怎么做?请给我发送ConsoleApplication36.exe的代码 可用于进程间通信。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
另一种选择是,如果这是一个足够的解决方案,则在启动流程时通过 你能给我一些提示吗?有可能吗??
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();
}
}
}