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 / C++ / MFC
  4. Regarding connection point notifications.

Regarding connection point notifications.

Scheduled Pinned Locked Moved C / C++ / MFC
comsysadminhelp
2 Posts 2 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.
  • R Offline
    R Offline
    Raj Prathap
    wrote on last edited by
    #1

    Hi, I'm using one COM component(exe), which implements the connection points also. I have a client which implements Sink interface . The event the server fires is a method with a single argument BSTR. When the server fires the event, client gets the notification, but the BSTR value is invalid(empty string). The problem is also seen with ULONG parameter also(where the value is garbage). Please suggest a solution, and please suggest if it is a good idea to have parameters in the event notifications. Also if two clients are connected to the server, only the client which caused the event to be fired is getting the notification. Thanks and regards, Raja Pratap.

    M 1 Reply Last reply
    0
    • R Raj Prathap

      Hi, I'm using one COM component(exe), which implements the connection points also. I have a client which implements Sink interface . The event the server fires is a method with a single argument BSTR. When the server fires the event, client gets the notification, but the BSTR value is invalid(empty string). The problem is also seen with ULONG parameter also(where the value is garbage). Please suggest a solution, and please suggest if it is a good idea to have parameters in the event notifications. Also if two clients are connected to the server, only the client which caused the event to be fired is getting the notification. Thanks and regards, Raja Pratap.

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      It's a little while since I did any COM connection points but if your data isn't getting through then I guess it's a marshalling issue. Check you Proxy/Stub implementation. Parameters in the event notifications should definitely work. The Server end needs a loop to notify all the clients for each event. Most of the samples leave this out as they simplify to one client. 5 years ago I had to implement reverse connection points with no documentation so I remember how painful this can be.;)

      Nothing is exactly what it seems but everything with seems can be unpicked.

      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