11-20-2008 08:02 PM
Solved! Go to Solution.
11-23-2008 07:35 PM
Rastikan,
Tell me if I am wrong, but I believe what you are looking for is Typecasting...you can find a bunch of information on it searching around the forums and knowledgebases, but these will probably help:
In the future, please do not make duplicate threads as well. Let me know if you have further questions.
11-28-2008 07:11 PM
Thank you very much Rob_K,
Although what you wrote me does not exactly somes my issue, it might be useful soon. Maybe this differs from my previous reply but the problem I am experiencing now is that if I create a compiled LabVIEW application that uses an older version of a control and I upgrade that control afterward. The application won't run anymore. In C++ ( if you are NOT dropping a control on a form) it usually does not matter what is the type library version or .dll version. As long as the system can create an instance of the specified CLSID it is ok (one can argue that it is ultimatly not desirable due to usual bugs ( untested control version with application ) but in my case it is safe. With LabVIEW it seems that the application only allow to run with its know type library. Does LabVIEW uses built-in assembly like .NET ? Is it like VB6 and above (bounded to a particular .dll version)? Is it possible to de-activate that?
The base code of my control is quite stable. I would like to make sure that the LabVIEW application runs whatever the control is (opt. disabling some feature in the front panel if the advanced interfaces are not available ).
Thank you again,
Rastikan.
12-01-2008 04:49 PM
Rastikan,
That makes a little more sense. Is this the error you are seeing when your application runs? Does it break on both the development computer and the target computer(s)?
Sometimes simply re-registering a control with windows will repair a broken activex link, but be sure you have the latest version of the run-time engine installed on your target computer as well.
12-12-2008 04:09 PM
I got my suspicion confirmed from some LabVIEW R&D Engineers.
They confirmed the following answer I had:
"So you confirm that an existing .exe application created with LabVIEW that ses some activeX control will break (not be able to run anymore) if the ser of the application upgrade the activeX control to a newer version. Correct? That really seems odd to me. Could double check with your R&D engineers? I am NOT that worried about creation of the control specifying
its CLSID. What I am concern about is versioning and existing application."
They basically answered YES we confirm.