Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Compatibility issue with Measurement Studio 7 control & Labview 6

Hi,
We've developed a program that uses the Measurement Studio 7.1 control (CWUI.OCX) but I've found that if Labview 6 is already installed on a user's PC, and then I install my program (which registers a newer version of CWUI.OCX), then our program will not work. It reports "Error loading control. A newer version is needed" followed by numerous other errors (the graph control also shows "Demonstration version").

After looking on this forum, I've tried using the license fixer program attached to knowledge base article ID 2BTGHR56, but that doesn't report any problems.

The CWUI.OCX we install is in a different directory to that the labview one (which appears in system32). If I rename the old CWUI file temporarily, then I can get my software going, though Windows Installer for Labview pops up and it isn't happy!

Any suggestions on how I can resolve this issue?

aled.


0 Kudos
Message 1 of 3
(3,396 Views)

How are you putting the CWUI.ocx control in a directory other thatn Windows\System32?  That is an ActiveX Control and is registered through COM.  When you make a call to it, it will try and find the one that is registered through COM and use that one, which is the older one, therefore it complains.  You should install the ActiveX control using the included Merge Module found in "[ProgramFiles]\Common Files\Merge Modules" This will register the new control and provide backwards compaitiblity with LabVIEW6.

Jeff
NI

0 Kudos
Message 2 of 3
(3,391 Views)
Yes, our installer does register the CWUI correctly (using self-registration). On a "clean" PC it works fine. I've also tried manually registering (via "regsvr32") the newer version of CWUI on the PC that has Labview6 in case our installer has messed up, but that didn't help strangely.

Unfortunately, we're stuck with a old version of Installshield (V6) at the moment which isn't MSI based, so doesn't support merge modules, however we do plan to upgrade to an MSI based installer in the near future. I shall see if I can do a quick test with the MSM.

0 Kudos
Message 3 of 3
(3,379 Views)