Questions tagged [iconnectionpoint]

13 questions
6
votes
1 answer

Problems calling IConnectionPointImpl interface from C++ invoked via modal WinForms

We have a native C++ application which supports some VBA macros of various types over COM. One of these types, VBAExtension, registers itself with the core C++ application, resulting in an instance of (a class derived from)…
Chowlett
  • 45,935
  • 20
  • 116
  • 150
4
votes
2 answers

What is IconnectionPoint and EventHandling

Trying to understand What is IConnectionPoint and how this is connected to IConnectionPointContainer,IEnumConnectionPoints,IEnumConnections and EventHandling. Read the artcicles from MSDN and CodeProject which is explaining a about other methods…
Simsons
  • 12,295
  • 42
  • 153
  • 269
2
votes
2 answers

Setting a WPF button to visible within an IConnectionPoint event handler

I'm fairly new to C# and WPF programing and right now this problem is giving me headaches. What the program should do: The program displays a welcome screen with a text box, where a customer can enter his name. If the device comes near a Wireless…
lx.
  • 2,317
  • 1
  • 22
  • 32
2
votes
1 answer

E_ACCESSDENIED exception when attaching to an event in a COM server from .NET

I have a C++/ATL COM server that implements IConnectionPoint events. My client is a C# application that attaches to the events. When the COM server is created as a SYSTEM service, the client can properly attach to the event. When the COM server…
user386931
  • 21
  • 1
1
vote
1 answer

Unexpected IConnectionPointImpl::Unadvise call on Windows Embedded Compact 7

We have a bigger software running on Win CE6 without problems. The core functionality is implemented in a COM server DLL that provides connection points. The COM client program registers event handlers for the connection points on program startup to…
KBO
  • 653
  • 7
  • 17
1
vote
5 answers

Connect to COM events in C# - support both managed and unmanaged servers

I'm writing C# code that needs to connect to COM events. I implemented the use of IConnectionPointContainer and IConnectionPoint thus: IConnectionPointContainer connectionPointContainer = internalGenerator as IConnectionPointContainer; …
Inbar Shani
  • 75
  • 2
  • 8
1
vote
0 answers

FindConnectionPoint method returning null connection point

I found this POST which near about resembles my code while doing COM Interop Event Handling using IConnectionPoints Interface. Please suggest me if you have any information related to this topic. I know that FindConnectionPoint returns NULL if there…
1
vote
1 answer

How to deregister correctly from receiving notifications using IConnectPoint Unadvise?

In the documentation for Mobile Broadband API, it says: The following procedure describes how to register for notifications. 1.Get an IConnectionPointContainer interface by calling QueryInterface on an IMbnInterfaceManager > object. 2.Call…
user1725145
  • 3,993
  • 2
  • 37
  • 58
0
votes
1 answer

IConnectionPoint::Advise does not work any more in Windows 10 "1903" from the non-main thread

We have an application that either runs some COM hosting in the main thread or in a different thread (async), and we would like to connect to this (connectable) object by using the standard ConnectionPoint interfaces in order to get its events. Up…
chksr
  • 192
  • 3
  • 13
0
votes
1 answer

InvalidCastException when setting up handler for COM event

I have an unmanaged C++ COM server that is setup to fire events, and i am trying to handle these events from my C# app. However, I get an InvalidCastException when setting up the handler myCOMObj.MyCOMEvent += new…
David A.
  • 439
  • 5
  • 18
0
votes
2 answers

How do I do ConnectionPoint in Delphi?

I'm writing a DLL which talks to Excel via its IDispatch interface. From VBA I pass in a Variant containing Application.Caller from which I draw the IDispatch pointer via .pDispVal. What I'd like to know is how to query the interface via that…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
0
votes
1 answer

Handle c# fired events in firebreath PluginAPI.cpp using COM Callable Wrapper

Does JSCallBack in Firebreath help in this matter?Because what I just saw it only handles events occured in the firebreath(native c++) project.Am I right here? I used the concept of IConnectionPoint interface to establish a connection with the…
-1
votes
2 answers

Automation object leaks memory (TConnectionPoints)

I have an automation object with event support that leaks memory. The FConnectionPoints which comes with the generated source is never freed. When I manually add FConnectionPoints.Free in the destructor, the leak goes away. I am on Delphi 7, using a…
The_Fox
  • 6,992
  • 2
  • 43
  • 69