05-16-2010 02:19 PM
Hey,
does anybody know if it is possible to wire a lpdispatch to pass an object handle as a parameter of an activex-control?
What i am trying is to use the MS ScriptControl ActiveX. I try to give my application an Scrptengine by using the ScriptControl.
As i tried to call the AddObject() Method i found that one paramater is of type LPDISPATCH. So how can I give this Method an object handle by using LPDISPATCH?
Regards
05-17-2010 12:49 AM
05-17-2010 02:00 AM
05-18-2010 03:34 PM
> LabVIEW can pass the returned LPDISPATCH as a variant from one activeX method to another.
But which method should i use to get the LPDISPATCH of my element?
> I'm not at all sure that this will really work, but have you tried to wire
> the LabVIEW ActiveX refnum of the according class directly to the variant input?
Hmm, i did not manage to runit, i always get Error 91. Do you have an example code snippet?
Thanks for any hints.
Maybe there is some other way to get my application a script engine?
Regards
Ronny
05-18-2010 03:40 PM - edited 05-18-2010 03:47 PM
Well you have from somewhere to instantiate that script engine object. Where and how I can't tell you as I do not know that software but it is most likely another ActiveX class in your automation server interface. Once you have that just wire the refnum to your object input.
As to scripting alternatives, you could look into LabPython which I have created a long time ago, and should work at least with the 2.4 until 2.6 versions of Python or you can take a look at http://luaview.esi-cit.com for integration of Lua into a LabVIEW application.
05-18-2010 03:52 PM