From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass a IDispatch parameter to activex dll

I have a labview client and ActiveX DLL server. I am trying to pass a IDispatch pointer to the ActiveX server. the code works with VB client but not with Labview client.

Is there any labview examle which I can make use of.
0 Kudos
Message 1 of 3
(2,629 Views)
Why don't you register the DLL and use ActiveX Automation in LabVIEW to communicate with Automation Server instead of passing IDispatch. I don't think labview would directly accept the IDispatch. The only possible way might be to write a wrapper DLL for that.
I have created ActiveX DLL in VB, and called the method and properties on it without any problem from LV. The only thing you might wana keep in mind, is to register DLL and launch LV afterwards.

Hope this would help

A Rafiq
0 Kudos
Message 2 of 3
(2,629 Views)
I beleive all you have to do is change Automation Refnum to a Variant. There's a node in Communication|ActiveX|To Variant to do that and pass the Variant to the method or property.
0 Kudos
Message 3 of 3
(2,629 Views)