LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Doesn't receive any ActiveX events from COM-server

Hi,
I have a problem that I can't figure out:

I have developed a COM object (ActiveX) in VC6.0 containing functions and events. When using the activex on Labview it successfully manage to call functions on the component.

Some of these functions generate events that should be fetched in Labview. Unfortunally no events seem to reach Labview. (I see the list of published events in Labview.)

The activex component implements IConnectionPoint and IProvideClassInfo.

My questions:
-Why don't I fetch the events sent by activex?
-Does Labview use Advise to register to the ConnectionPointContainer?

All help appreciated!
0 Kudos
Message 1 of 3
(2,738 Views)
I have done some digging on the web and found that:

"LabVIEW currently gets its event information from the IProvideClassInfo interface. The interface must be correctly implemented by the object for events to be seen by LabVIEW."

also there was this link:
http://digital.ni.com/public.nsf/websearch/9BF4C3D785CB131186256C7C007BE3A4?OpenDocument

You may need to contact tech support to get to the bottom of this.
0 Kudos
Message 2 of 3
(2,738 Views)
Hi again and tanks (Jeremy) for taking your time!

Unfortunally I have not solved the problem yet..
I will try to clarify the problem:

In my example LabView(LV) is the "client" and the activex is the "server" (C++ com object) that throws events to the client.

When the activex controller tries to send an event to LV, LV throws an exception saying that "An exception occured within the external code called by a Call Library Node".

To try things out, I've developed a testclient in c++ implemented to receive events from activex control.

The testclient uses the tlb-file to get info about the controller, uses the IProvideClassInfo to get the interface sending events and it passes a pointer to its sink interface to the activex controller.
It works
just fine! The client get the events as expected.

Why doesn't it work with Labview when it works fine in c++?
I have idl-file and headerfiles if anyone's interested.

Any suggestions?
/Johan
0 Kudos
Message 3 of 3
(2,738 Views)