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