LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I access an ActiveX control's interface when have its generic control refnum in hand?

Perhaps this would be useful.
0 Kudos
Message 21 of 31
(1,357 Views)

Perhaps, if I had LV 7.1. 😛 😄

 

I'm running 7.0

0 Kudos
Message 22 of 31
(1,329 Views)
Hi All,So after a lot of time trying to verify how to do this I have been able to find out for sure that I is not going to be possible.  There is no way to look into the class using the reflector in LabVIEW.  Sorry to be the one to bring the bad news.
Adam H
National Instruments
Applications Engineer
0 Kudos
Message 23 of 31
(1,325 Views)
How do you get that icon with the funky arrow on its left that states ActiveXControl?
0 Kudos
Message 24 of 31
(1,324 Views)

smercurio_fc wrote:

As you've found out, when you get the reference via the Controls[] property all you get is a generic reference. Even if you cast it to be an ActiveXContainer all you get is a generic ActiveXContainer. You can cast it to a specific ActiveX control by wiring a (direct) reference to an ActiveX control, but you have no way of knowing if the cast is correct since the casting is likely to give no error.

 

I don't know if it's possible to do what you want with ActiveX controls. Perhaps Adam may be able to dig something up.


How do you get that icon with the funky arrow on its left that states ActiveXControl? There is also one that states This.

Message Edited by Been bitten by LabVIEW on 11-26-2008 02:53 PM
0 Kudos
Message 25 of 31
(1,322 Views)

I'm not sure which icon you're referring to, but if it's the one labeled "WindowsMediaPlayer", that's just a reference to the ActiveX container. I'm using 8.2, so the icons may be a little different.

0 Kudos
Message 26 of 31
(1,317 Views)

Can't use a reference like that in 7.0.  That was the first thing I tried. 😞

 

Oh well.

0 Kudos
Message 27 of 31
(1,294 Views)

pcardinale wrote:

Here it is in 7.0


Hmm, well that means that my ActiveX control has no name then. 😉 Just looking at the data on the png I uploaded shows that the last digit is 0.  Interesting way of determinging the string though. 🙂

 

Thanks

0 Kudos
Message 29 of 31
(1,169 Views)

smercurio_fc wrote:

I'm not sure which icon you're referring to, but if it's the one labeled "WindowsMediaPlayer", that's just a reference to the ActiveX container. I'm using 8.2, so the icons may be a little different.


I once thought I saw an icon that showed that funny arrow on LV7.0 and it was a reference to "this vi".  Was I imagining it?

 

Thanks

0 Kudos
Message 30 of 31
(1,166 Views)