03-28-2012 03:32 PM
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.
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?
03-29-2012 11:26 AM
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/60B1DE0
03-29-2012 12:40 PM
>Are you on Windows 7 32 or 64-bit?
>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.
03-29-2012 01:29 PM
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
03-29-2012 03:33 PM
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?
03-30-2012 07:49 AM
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?
03-30-2012 11:49 AM
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
07-29-2012 09:54 AM
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.