LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with automation open for activex control

Hi,

 

I want to open an ActiveX Control (.ocx-file) with the Automation Open function. This .ocx file was successfully registered by using regsvr32.

 

The VI is working fine after using Automation Open and all the contained classes are accessible.

 

However, after saving the VI and opening it again the error 2147221164 appears and the program failes - referencing the object new at the Automation Open functions solves the problem, but only till the next reopening of the VI.

 

Hope somebody has a solution for this "instability"... 

 

Sorry for bothering and thanks for any help!!!

 

 

0 Kudos
Message 1 of 8
(3,128 Views)

Hi goljadkin,

 

have you tried to register the osx-file new, because the error happend if the file is not registered correctly.

How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?

One thing is to make sure you are logged in as an administrator.

 

Which LabVIEW Version do you use, have you tried to test this with a newer version?

 

best regards.

best regards
Alexander
0 Kudos
Message 2 of 8
(3,114 Views)

 

 I already unregistered and registered the .ocx file new - the problem is still there... Im using Labview 8.6.

 

...

0 Kudos
Message 3 of 8
(3,100 Views)
Are you running and then stopping the VI, or do you have the open in one VI, and you are trying to access other properties in another? That won't work. You have to have the hierarchy running in order for the references to be valid.
0 Kudos
Message 4 of 8
(3,096 Views)

Hi smercurio_fc,

 

originally i had a dll written in c++ which contained classes - i wrapped this in a activex control to have access via labview. Im calling the activex control with the automation open function in same VI in which i am also using property nodes and invoke nodes to have access to the classes and methods...

 

But as i told before, it happens that Automation Open fails, when starting the VI again after closing(saving), even so it was working perfectly fine before...

 

Thanks for your response... 

 

 

 

 

 

 

 

 

 

0 Kudos
Message 5 of 8
(3,082 Views)

hi goljadkin,

 

can you post the dll and the Vi, so i can test it? Or can you test it under LV 2009 if the error happens here.

 

best regards
Alexander
0 Kudos
Message 6 of 8
(3,067 Views)

Hi duffy2007,

 

sorry for my late response - was on vacation the last weeks... I wouldnt like to post the dll here because there could be some copy right problems, but is there another possibility to send the stuff to you, so you could test? - that would be nice...

 

Thanks,

 

goljadkin 

0 Kudos
Message 7 of 8
(2,999 Views)
hi goljadkin, you can contact your lokal branch from ni to get an service request number, with that you can sent your code to an AE for testing.
best regards
Alexander
0 Kudos
Message 8 of 8
(2,986 Views)