Connection points are the standard COM interface exposed by connectable objects, that allows clients to register for event callbacks. This tag is for questions about implementing and registering clients with the IConnectionPoint interface.
Questions tagged [connection-points]
11 questions
3
votes
6 answers
Unable to get ATL Connection Points working
I am trying to create a COM component using ATL, and I'd like to raise events for my VB client. I've found numerous tutorials, all of which seem to vary in details, and none of them appear to generate a working solution. Here is what I am…
Christopher
3
votes
2 answers
Create a new connection point in VC++ 6?
I have an ATL/COM project, in VC++ 6. I want an existing class, that has never before been defined to raise events, to raise events. To do this, the class will have to implement a "connection point".
These events are of a type that no class has…
Ptah- Opener of the Mouth
2
votes
2 answers
How to get guid from unknown com object interface (e.g. connection point)?
I've got running service which is available via COM. I can connect with it by using Activator.
I connect COM library
using MyLib;
and then get my object by Instance
Activator.CreateInstance((Type.GetTypeFromProgID("RunningInstance")));
this is…

cnd
- 32,616
- 62
- 183
- 313
1
vote
1 answer
Why doesn't IE listen to ActiveX events?
I put ActiveX control onto HTML page with longrun method that should fire events to be processed by IE.
They don't fire because m_vec.GetSize() == 0, it means IE doesn't connect to my ActiveX.
Site is localhost, it's in Trusted sites and security…

Andrew Florko
- 7,672
- 10
- 60
- 107
1
vote
4 answers
How to check if a container supports multiple connections?
Implemented the Sink Class - to receive event notifications from COM Server
Event Interface derives from IDispatch
I have an issue whereby an IConnectionPoint::Advise call returns E_NOTIMPL. This could be because the connection point only allows…

Aaron
- 2,823
- 9
- 44
- 57
1
vote
0 answers
ActiveX events in C#
I am trying to use an old ActiveX control in C#, and this line from CreateSink method
cookie = new AxHost.ConnectionPointCookie(ocx, eventMulticaster, typeof(TrueDBGridEvents));
will fail and generate an exception.
The exception is "Source object…

Florian Szőke
- 11
- 2
1
vote
1 answer
Access violation writing memory when calling FindConnectionPoint
I am trying to subscribe to MBN Events. Here is my code:
void subscribeToMbnEvents()
{
dwError = CoInitializeEx(NULL, COINIT_MULTITHREADED);
SAFEARRAY* mbnInterfaces;
CComPtr intMgr = NULL;
dwError =…

Paul
- 5,524
- 1
- 22
- 39
1
vote
1 answer
Trouble with Microsoft Word connection point sink example / MFC
I've been trying to implement a connection point sink for a third party COM component using MFC. I've developed some COM components before, though connection point sinks is not something I'm well versed in. After banging my head against a wall for…

forother
- 39
- 4
0
votes
2 answers
event notifications not received as described
Problem:
Event notifications (From COM object - Server) are not received as listed in the Sink (class) implementation.
One event notification is received (Event_one), however, others are not received accordingly
If order is changed - in…

Aaron
- 2,823
- 9
- 44
- 57
0
votes
1 answer
regenerating connection point methods
I've created a connection point interface _IPlayerEvents.
I've added a couple of methods
OnConnect()
OnDisconnect()
I've built the project, and VS2008 has generated code in the CProxy_IPlayerEvents class:
HRESULT Fire_OnConnect(){...}
HRESULT…
user206705
0
votes
2 answers
IE attachEvent on object tag causes memory corruption
I've an ActiveX Control within an embedded IE7/8 HTML page that has the following event [id(1)] HRESULT MessageReceived([in] BSTR id, [in] BSTR json). On Windows the event is registered with OCX.attachEvent("MessageReceived",…

Lars
- 1
- 1