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
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
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