LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make a callback function of variant type

Hi!
I use an Invoke node using Active X.
This invoke node get a Progress argument which Object that implements IMPTProgressCallback interface.
It should have implementation of methods Onstart, OnProgress and OnEnd.

The problem is I have no idea how to implement the this type of Callback function in Laview.

Please check my attachement file and help me.
0 Kudos
Message 1 of 3
(2,386 Views)

@Taeho wrote:
Hi!
I use an Invoke node using Active X.
This invoke node get a Progress argument which Object that implements IMPTProgressCallback interface.
It should have implementation of methods Onstart, OnProgress and OnEnd.

The problem is I have no idea how to implement the this type of Callback function in Laview.

Please check my attachement file and help me.

I'm not very familiar with ActiveX callbacks but AFAIK you can not implement ActiveX (or .Net) objects that implement a specific class interface in LabVIEW. You would have to implement that class in C++ or VB and then pass this object to the callback installation function which uses some other means to communicate to your LabVIEW callback.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(2,377 Views)
Thank you for your helping.

Yes, you are right. Then I have got another problem.
When I make a DLL with C++ or VB, How to interface this DLL to variant type input node.
The problem is it must be a variant type input node.
0 Kudos
Message 3 of 3
(2,358 Views)