C# object Problem
-
How can I pass object from one exe to another exe in the local machine?
-
How can I pass object from one exe to another exe in the local machine?
Hi, one easy way to do this is using .NET remoting. This allows you to communicate with another application on the same PC or another PC on the network. Here are some links to get you started: .NET Remoting with an easy example[^] http://generally.wordpress.com/2007/05/31/a-simple-remoting-example-in-c/[^] http://www.csharpfriends.com/articles/getarticle.aspx?articleid=62[^]
-
Hi, one easy way to do this is using .NET remoting. This allows you to communicate with another application on the same PC or another PC on the network. Here are some links to get you started: .NET Remoting with an easy example[^] http://generally.wordpress.com/2007/05/31/a-simple-remoting-example-in-c/[^] http://www.csharpfriends.com/articles/getarticle.aspx?articleid=62[^]
Thank I will check it
-
Thank I will check it
So what about I wanna pass class object across exe...it means I have two exe winform then I wanna pass class object in exe1 to exe2 ...what is the solution...? thx for ur attention
-
So what about I wanna pass class object across exe...it means I have two exe winform then I wanna pass class object in exe1 to exe2 ...what is the solution...? thx for ur attention
You probably need to use serialization[^] to write and read your objects, and Inter-Process Communication (IPC) Introduction and Sample Code[^] to transfer between applications.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
Hi, one easy way to do this is using .NET remoting. This allows you to communicate with another application on the same PC or another PC on the network. Here are some links to get you started: .NET Remoting with an easy example[^] http://generally.wordpress.com/2007/05/31/a-simple-remoting-example-in-c/[^] http://www.csharpfriends.com/articles/getarticle.aspx?articleid=62[^]
your link refer to return value between two exe but what I want : pass object(Ex: Textbox or other toolbox tool)
-
your link refer to return value between two exe but what I want : pass object(Ex: Textbox or other toolbox tool)
can u please give me an easy example with that....! like pass the connectionstring object ...
-
So what about I wanna pass class object across exe...it means I have two exe winform then I wanna pass class object in exe1 to exe2 ...what is the solution...? thx for ur attention
Passing UI controls between processes is not a very good idea, and I would recommend you don't do that. You almost certainly don't need to. To pass model objects around, they need to either be serialisable or marshalled-by-reference (whether that is using the default [Serializable] and MarshalByRefObject with Framework-provided remoting, i.e. WCF, or through some custom scheme, i.e. a TCP library which supports serialisation of objects).
-
Passing UI controls between processes is not a very good idea, and I would recommend you don't do that. You almost certainly don't need to. To pass model objects around, they need to either be serialisable or marshalled-by-reference (whether that is using the default [Serializable] and MarshalByRefObject with Framework-provided remoting, i.e. WCF, or through some custom scheme, i.e. a TCP library which supports serialisation of objects).
could you please send me the example Project? but I use it in local computer not different computer. Thank in advance....