LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to call a Component Object Model (COM) object

Thanks a bunch,
I would give that a shot, but if I am going into the underbush, Thanks for the bush KnifeSmiley Very Happy
0 Kudos
Message 11 of 16
(1,998 Views)

Hello again:

Brian I thought I don't have to bug you again but I was wrong

I can't register the type library

http://digital.ni.com/public.nsf/allkb/4F811A9B23F1D46E862566F700615B7A?OpenDocument

didn't work. I tried to google up some methods and that doesn't work either. and then I tried hitting straight with Call Library Function and the whole labview shuts on me.Smiley Sad

 

0 Kudos
Message 12 of 16
(1,994 Views)
Well, you don't need to register the typelib - you can simply browse to it from the ActiveX selection dialog. The COM component itself (the shell) is already registered. I dropped an invoke node and selected the interface and was able to see the methods.
 
DON'T use Call Library node - use the ActiveX palette only for these things. If you need to call one of the Shell Win32 methods, however, you do use the Call Library Node.
Message 13 of 16
(1,991 Views)

Hello Brian,

It's been a while but I have been away, so I might be much to ask. But here it is:

I am just wondering if you could tell me which reference I should use for the invoke node that I call these by?

thanks

Jimmy

0 Kudos
Message 14 of 16
(1,952 Views)
I'm not sure what you are asking. You need to call the Automation Open node on the shell CoClass that you want, and then you can pass that refnum into the invoke node. ??? What exactly are you looking for?
Message 15 of 16
(1,943 Views)
Oh I am actually trying to get this to work.
 
You see if this works Brian I can get rid of the extra tab or any tab that I don't need.
I don't really understand that shell co class part
Download All
0 Kudos
Message 16 of 16
(1,937 Views)