08-12-2009 01:14 PM
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!!!
08-13-2009 04:12 AM
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.
08-13-2009 07:50 AM
I already unregistered and registered the .ocx file new - the problem is still there... Im using Labview 8.6.
...
08-13-2009 09:18 AM
08-13-2009 05:07 PM
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...
08-14-2009 06:37 AM
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.
08-25-2009 08:55 AM
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
08-26-2009 05:41 AM