Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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();

        }

    }
    
}


Now i want to use object share1 in ConsoleApplication36.exe created in ConsoleApplication35.exe.
How can i do this ??Please send me code for ConsoleApplication36.exe..
Posted
Updated 31-Oct-12 22:10pm
v2
Comments
fdiu 1-Nov-12 5:06am    
can u suggest any hint??

1 solution

You can implement interprocess communication using WCF and Named Pipes:

Many to One Local IPC using WCF and NetNamedPipeBinding[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900