Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# object Problem

C# object Problem

Scheduled Pinned Locked Moved C#
questioncsharphelp
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kornkimhour
    wrote on last edited by
    #1

    How can I pass object from one exe to another exe in the local machine?

    J 1 Reply Last reply
    0
    • K kornkimhour

      How can I pass object from one exe to another exe in the local machine?

      J Offline
      J Offline
      JF2015
      wrote on last edited by
      #2

      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[^]

      K 2 Replies Last reply
      0
      • J JF2015

        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[^]

        K Offline
        K Offline
        kornkimhour
        wrote on last edited by
        #3

        Thank I will check it

        K 1 Reply Last reply
        0
        • K kornkimhour

          Thank I will check it

          K Offline
          K Offline
          kornkimhour
          wrote on last edited by
          #4

          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

          L B 2 Replies Last reply
          0
          • K kornkimhour

            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

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • J JF2015

              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[^]

              K Offline
              K Offline
              kornkimhour
              wrote on last edited by
              #6

              your link refer to return value between two exe but what I want : pass object(Ex: Textbox or other toolbox tool)

              K 1 Reply Last reply
              0
              • K kornkimhour

                your link refer to return value between two exe but what I want : pass object(Ex: Textbox or other toolbox tool)

                K Offline
                K Offline
                kornkimhour
                wrote on last edited by
                #7

                can u please give me an easy example with that....! like pass the connectionstring object ...

                1 Reply Last reply
                0
                • K kornkimhour

                  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

                  B Offline
                  B Offline
                  BobJanova
                  wrote on last edited by
                  #8

                  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).

                  K 1 Reply Last reply
                  0
                  • B BobJanova

                    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).

                    K Offline
                    K Offline
                    kornkimhour
                    wrote on last edited by
                    #9

                    could you please send me the example Project? but I use it in local computer not different computer. Thank in advance....

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups