Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX controls reverted to Evaluation Copy

I inherited a rather complex MFC app that uses 2 NI graph controls to display graphs of data. I've been making changes to the app for the last few weeks with no problems. Today, for the first time,  I used the VS designer to move around a few controls in the main window (this is the window that has the NI controls). Immediately I saw a popup about this being an evaluation version of the NI controls. Now I'm stuck and I don't know how to get back to my real licenses.

 

I'm using VS2010, W7 and MS2010

 

I do have MS installed and this is what it says in the Measurement Studio -> license window

 

The following licensed Measurement Studio items have been installed.  
Component: Status:
NationalInstruments.Analysis.Professional    Licensed  
NationalInstruments.Net                              Licensed  
NationalInstruments.NetworkVariable            Licensed  
NationalInstruments.Tdms                           Licensed  
NationalInstruments.UI.WebForms               Licensed  
NationalInstruments.UI.WindowsForms         Licensed 

 

After a bit of googling, I tracked down and downloaded MSLicenceFixer.exe from the NI site. I ran the "fixer" and it listed one item in the Licensed Controls list:

"3D Graph control 8.0". It said that this control is correctly licensed.

The other two lists in the "fixer" app, "broken Licenses" and Demo Licenses" were empty.

 

So what do I do now? How do I get rid of the Evaluation license that just popped in today?

 

Thanks,

 

Mitch

 

   
   
   
   
   
   
   

 

 

 

 

0 Kudos
Message 1 of 9
(7,324 Views)

Hi Mitch7,

 

Are you on Windows 7 32 or 64-bit?  Were you ever able to sucessfully use the Measurement Studio ActiveX controls on this machine?  Are you able to use the Measurement Studio controls in a new project you create on the machine?  You may need to remove the controls from the project and reinsert them or possibly unregister the ActiveX controls using the regsvr32 command and reinstall Measurement Studio.  The additional troubleshooting steps you can take are detailed here: http://digital.ni.com/public.nsf/websearch/60B1DE0C85624B55802568D90031AF89?OpenDocument.

Justin D
Applications Engineer
National Instruments
http://www.ni.com/support/
0 Kudos
Message 2 of 9
(7,318 Views)

>Are you on Windows 7 32 or 64-bit?  

 

Win 7/64

 

>Were you ever able to sucessfully use the Measurement Studio ActiveX controls on this machine? 

 

As I said in the original post, I was updating and building the project with out any problems. It was only when I opened the "designer" for the dialog that had the NI activeX controls that I started having this problem.

 

> The additional troubleshooting steps you can take are detailed here:

 

The KB article you referenced doesn't apply. because I was never using the evaluation version. From the article:

"I was using Measurement Studio ActiveX evaluation controls in my project, and then I bought Measurement Studio 6.0."

 

> You may need to remove the controls from the project and reinsert them

 

If I remove and reinsert, won't I have to reconfigure the control? I inherited this old project just for maintenance purposes. I have no prior MFC or NI experience and really don't want to get too involved in trying a bunch of things things that MAY work. (I do have experience with NI drivers, but that's a whole different story)

 

One other clue that may help. When I run the NI License manager, it says I have two things installed:

 1. Measurement Studio 8 -> DAQ assistant

 2. Measurement Studio 2010 -> Prof. Developement installed

 

When I run the License Fixer it says I have a properly installed license for

   3D Graph control 8.0

Is it possible that 3D Graph control 8.0 is treated as an eval version with the NEWER MS 2010?

 

Thanks again for any help.

 

Mitch

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
Message 3 of 9
(7,314 Views)

Hey Mitch,

 

I think the KB might still be pertinent here. The issue can occur when there is more then one version of Measurement Studio installed, in your case version 8.0 and 2010. Try unregistering the control and reregistering it for a potential quick fix. If that doesn't work, you should uninstall 8.0 and reinstall it. This will allow the control to see its licensing under the 8.0 version. Let me know if this works

 

Kind Regards,

 

Luke 

0 Kudos
Message 4 of 9
(7,305 Views)

I unregistered and reregistered the two ocx's


D:\>REGSVR32 /U C:\Windows\SysWOW64\cw3dgrph.ocx
D:\>REGSVR32 /U C:\Windows\SysWOW64\cwui.ocx

D:\>REGSVR32 /i C:\Windows\SysWOW64\cwui.ocx
D:\>REGSVR32 /i C:\Windows\SysWOW64\cw3dgrph.ocx

 

Unfortunately the reregistering gave me an error 

"the entry-point DllInstall was not found. Make sure That cw3dgrph.ocx is a valid DLL or OCX file and then try again"

 

So I tried to run the installer. All I had was the MS 2010 SPI installer CD. I figured it must have the latest, including those two ocx's

 

But then the installer wouldn't run because it NEEDED ACCESS TO MY DOCUMENTS! I presume it was refused because My Documents is maintained by our IT department (it's on a file share) and thus IT doesn't want an installer running in there.And for once I agree with IT.

 

All I need are two active X controls! Whatever NI was going to install in My Documents, I probably don't need it. or at least give me an option to bypass that part

 

Any other ideas?

 

Mitch

 

 

 

 

 

 

 

 

0 Kudos
Message 5 of 9
(7,299 Views)

I'm still trying to figure this out. While reading through KB articles I found this one about "legacy" support. Do you think this could apply to me? Is it possible that ActiveX/MFC apps are no longer supported unless you apply for and receive this "legacy" package?

 

It's possible that the guy I inherited this project from had this kit. Is there a way to find out?

 

Mitch

0 Kudos
Message 6 of 9
(7,292 Views)

Hey Mitch,

 

You will need to request MFC support to get the legacy ActiveX controls to work. The 2010 Measurement Studio installer without legacy support only installs evaluation modes of these controls. To find more information on how to get MFC support, go to www.ni.com/info and type in mfcsupport as the info code

 

 

 

0 Kudos
Message 7 of 9
(7,284 Views)

was this ever sorted out?  i have the same problem.

0 Kudos
Message 8 of 9
(7,138 Views)

Hi Bum,

 

Have you tried the same steps as Mitch7? If you are receiving the same error then trying the steps outlined so far may be helpful.

 

Most importantly, if you are creating a Visual C++ MFC application using Measurement Studio 2010 then you will have to request the MFC Support for Measurement Studio 2010 as mentioned above. This is because Measurement Studio 2010 no longer includes Visual C++ support by default, but the required ActiveX components can be requested via the instructions posted above by Luke W for Measurement Studio 2010.


Milan
0 Kudos
Message 9 of 9
(7,126 Views)