Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have 3 application

1- C# window application1
2- C# window application2
3- Class library

I am Passing data from application 1 to class library and I want this data from application 2. But I am not getting
For ex My class library have one class

public class1
{
public bool Flag = false;
public void hello(bool f)
{
Flag = f;
}
}

Application 1

class1 cs = new class1();
cs.hello(true);

but from application 2 I am always getting Flag value false event I passed true
Please suggest how can I achieve this functionality

Thanks
Posted
Updated 23-Jan-13 5:33am
v2
Comments
Kishor Deshpande 23-Jan-13 12:00pm    
Why you want to do it in that way?
Do you want communication to happen between Application1 & Application 2??

you can use some form of Persistent Storage[^] that both applications can access.

Or you can look into remoting and have the applications talk to themselves directly: A simple Remoting HelloWorld[^]
 
Share this answer
 
You cannot do it this way, each class instance, and its variables, is unique to the application which calls it. You need to use named pipes, sockets, message queues etc. See these links[^].
 
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