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. COM
  4. ATL component connection points and smart pointers error

ATL component connection points and smart pointers error

Scheduled Pinned Locked Moved COM
helpc++questiontutoriallearning
3 Posts 2 Posters 4 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I'm going mad with this. I created an ATL object with a single Dual Interface. I use this from a C++ project using smartpointers... no problem. I have now added an events interface implementing IConnnetionPointeCOntainer etc following closely a numbe rof examples and my ATL Internals book. The component builds no problem however the client now gets the error C2787: 'IDispatch' : no GUID has been associated with this object. What is going on ?? Does anyone have a decent example of a simple ATL component that has one standard interface and another events interface and a C++ client that that implements both the standard dual interface and the event sink using the smart pointers. Please help if you can..:confused:

    Brian C HartB 1 Reply Last reply
    0
    • L Lost User

      I'm going mad with this. I created an ATL object with a single Dual Interface. I use this from a C++ project using smartpointers... no problem. I have now added an events interface implementing IConnnetionPointeCOntainer etc following closely a numbe rof examples and my ATL Internals book. The component builds no problem however the client now gets the error C2787: 'IDispatch' : no GUID has been associated with this object. What is going on ?? Does anyone have a decent example of a simple ATL component that has one standard interface and another events interface and a C++ client that that implements both the standard dual interface and the event sink using the smart pointers. Please help if you can..:confused:

      Brian C HartB Offline
      Brian C HartB Offline
      Brian C Hart
      wrote on last edited by
      #2

      Chris, My 'DCOM D-Mystified' tutorial, here on The Code Project, might help. With it, you can get your feet wet at least doing up a simple client/server system using Connection Points and the works. I know its title says DCOM, but it can work for COM too -- just keep the server and client on the same computer! Click here to start the tutorial! Cheers, Brian Hart

      L 1 Reply Last reply
      0
      • Brian C HartB Brian C Hart

        Chris, My 'DCOM D-Mystified' tutorial, here on The Code Project, might help. With it, you can get your feet wet at least doing up a simple client/server system using Connection Points and the works. I know its title says DCOM, but it can work for COM too -- just keep the server and client on the same computer! Click here to start the tutorial! Cheers, Brian Hart

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

        Thank you, Thank you Thank you. I've got it working at last. One of the problems I had with the error message was because I needed to include the atlbase.h header as well. Chreers

        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