Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

convert vc++ project to vs2005,can't open all .h like nigraph.h,running in vc ok

I install measurement studio 6.0 and have a project using graph and numedit control, working in vc++6.0 perfectly. I need to make a installer to distribute my application to another computer, I can't do this in vc++, so I convert my project to visual studio 2005. When I rebuild my project in vs2005, it can't open all .h files (included in NiIncludes.h), also in my vs2005, there is no any connection with measurement studio6.0 , like no Ni Measurement Studio Appwizard in File->New->Project , no Measurement Studio Add/Remove Components Wizard. I am wondering if measurement studio 6.0 can work in visual studio 2005? If not, how should I do? Please help, thanks.
0 Kudos
Message 1 of 7
(4,554 Views)

Hey Mliu,

Because Visual Studio 2005 didn't exist when Measurement Studio 6.0 was released, there is no native support (aka no NI Measurement Studio App Wizard in File>>New>>Project). Some customers have been successful in using Measurement Studio 6.0 in VS2005 but first I want to address your concern that you can't deploy in VC++ 6.0. 

 

I did some searching for you and it looks like there should have been a program called InstallShield that you can choose to install from your VC++ 6.0 disk by running the "full setup". 

 

Here is a Microsoft document that mentions the InstallShield software being an option: http://support.microsoft.com/kb/217091

 

"To install any of the following tools, you must run the full setup.

  • ...
  • FrontPage 98 Server Extensions
  • InstallShield
  • NT Option Pack for Windows 95
  • ..."

 

After digging a little further, I found this document on CodeProject that shows you how to create an installer for VC++ 6.0 using InstallShield:

 

How to Create Customized InstallShield for a VC++ Application

http://www.codeproject.com/KB/install/InstallShieldguide.aspx

 

Also, I don't know what your licensing situation is, but if you have a license for a more recent version of Measurement Studio, then I can point you to a version that supports Visual Studio 2005 natively and you go this route. 

 

Lars
0 Kudos
Message 2 of 7
(4,508 Views)

Hi, Lars

Thanks for your reply. Now I setup my application using Visual Studio Installer, it works in the target machine very well. But  another problem comes up, my application after installed only run in WindowsXP, not in Vista, even can't open in Vista. Also I open cwui.ocx using depends.exe, show mesa.dll :"error opening file, system can't find mpr.dll", but I checked mpr.dll is in system32. If is there some problem in cwui.ocx, my application can't open in Vista. Thanks again.

0 Kudos
Message 3 of 7
(4,485 Views)

Hey mliu,

Do you have another Vista system that you could try your installer on bychance? I did some searching internally and unfortunately I can't find any records of other customers having this issue. I did search the web, though, and it seems that people have seen this error on machines with corrupt files or possibly virus attacks. The best step would most likely be to try to uninstall and reinstall this DLL from a trusted source. Here is a webpage that I ran across:

 

http://pcsupport.about.com/od/findbyerrormessage/a/mpr-dll-not-found-missing-error.htm

 

Although this page has a lot of steps (going so far as reformatting your machine), if you had another Vista machine then you could verify that it isn't your particular computer by trying another. Rebuilding the installer would also be a good idea.

 

Hope this helps,

Lars

0 Kudos
Message 4 of 7
(4,446 Views)

Hi Lars,

I did try another Vista, show me the same message " your application stop working", also I tried five WindowsXP, all work very well. One day, I used installshield to do my installer, whole procedure is ok, but when I ran my installer, showed me the message " can't find cwui.ocx in the component table", actually cwui.ocx is in system32. Why?

Thanks.

mliu

0 Kudos
Message 5 of 7
(4,443 Views)

Hey mliu,

According to this website: http://www.itwriting.com/blog/?p=167 as well as others, it looks like Visual Studio 6 is not supported on Vista. The author of that website did eventually get it installed, but he was trying to install the VS6 development environment and not an application installer. It looks as though your deployment will work on XP machines but that your VS++6 application is not supported on Vista. Since you mentioned in a previous post that you have Visual Studio 2005, then one option would be to upgrade your version of Measurement Studio to one that supports VS2005. This would allow you to be able to deploy to both XP as well as Vista machines.

 

Lars

 

0 Kudos
Message 6 of 7
(4,426 Views)

Hi Lars,

I will think about your advice. Thanks a lot.

mliu

0 Kudos
Message 7 of 7
(4,419 Views)