03-19-2004 05:08 AM
03-19-2004 07:45 PM
11-14-2004 02:08 PM
10-22-2007 05:55 AM
Did you ever resolve your problem?
I am having exactly the same problem. I want to use labview 7.0 to control a 3rd party's application (which controls a lab instrument). I can see all the methods and properties I need, but only if I uncheck "show creatable objects only" on the relevant type library.
I have a working visual basic (as an xls macro) example of how to control the 3rd party application and it uses the non-creatable objects quite happily.
But in the VB example VB first uses GetObject to connect to a running instance of the 3rd party's application using GetObject. As I understand it, this checks the Running Object Table (ROT) to return an interface pointer.
"COMNAME" in the GetObject (, COMNAME) used in the VB application I can see listed in the Windows registry, but cannot find it (and I have looked!) anywhere in the "select object from type library" navigation dialog window.
I think it is because they are dependant objects, but how to I generate an automation refnum for them if I can't find the higher level object? Perhaps I should use CINs?
10-22-2007 06:01 AM
I want to use labview 7.0 to control a 3rd party's application (which controls a lab instrument). I can see all the methods and properties I need, but only if I use an object I can see when I uncheck "show creatable objects only" on the relevant type library.
I have a working visual basic (as an xls macro) example of how to control the 3rd party application and it uses the non-creatable objects quite happily.
But in the VB example VB first uses GetObject to connect to a running instance of the 3rd party's application. As I understand it, this checks the Running Object Table (ROT) to return an interface pointer.
The "COMNAME" in the VB example "GetObject (, COMNAME)" I can see listed in the Windows registry, but cannot find it (and I have looked!) anywhere in the "select object from type library" navigation dialog window.
I think it is because they are dependant objects, but how do I generate an automation refnum for them if I can't find the higher level object? Perhaps I should use CINs?