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. Communicate across application instances

Communicate across application instances

Scheduled Pinned Locked Moved C#
csharpquestion
3 Posts 3 Posters 2 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.
  • P Offline
    P Offline
    paulb
    wrote on last edited by
    #1

    I need to send a signal from one instance of my application to another. What would be the best method to do this? In Win32 I would use a named event and have a listening thread to pick up when that event gets signalled. But named events dont seem to be available in .NET 1.1

    C M 2 Replies Last reply
    0
    • P paulb

      I need to send a signal from one instance of my application to another. What would be the best method to do this? In Win32 I would use a named event and have a listening thread to pick up when that event gets signalled. But named events dont seem to be available in .NET 1.1

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      WM_COPYDATA is the easiest way to do this. Yes, you need to impliment this yourself, I don't think C# has a method that calls it. Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      • P paulb

        I need to send a signal from one instance of my application to another. What would be the best method to do this? In Win32 I would use a named event and have a listening thread to pick up when that event gets signalled. But named events dont seem to be available in .NET 1.1

        M Offline
        M Offline
        mav northwind
        wrote on last edited by
        #3

        You could use remoting for this. There's a good example on single instance applications on MSDN: Real World Applications Sample, Part 1[^] There are a few little bugs in there and it's written for .NET 1.0 IIRC (so some channel security settings have to be changed for 1.1), but altogether it's working nicely. Regards, mav

        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