Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

redistribute my application/Meas Studio

Development systems: WinXP+SP2, VS.net, NI Measurement Studio 7.1

 

I need to deploy my application developed in nims.net for vc++ to my user. The application is primarily a vc++ application with integration of NI's MS interface elments such as knob, slide, and 2D graph.  I followed the instructions introduced by Tony H (http://forums.ni.com/ni/board/message?board.id=232&message.id=302&query.id=41595#M302) to built an installer for my application. Unfortunately it failed to work on the user's winXP PC on which NI's MS is not installed.

 

To simplify the procedure, I created a new simple NI MS application (dialog based) and successively created a Setup Project in the same solution, rebuilt the solution, and then copied the release folder of the setup project to the user's PC. Ran the setup.exe, the application was successfully installed on. Double clicked the application and  it ran properly. 

 

I further inserted a knob, a slide and a 2d graph in the dialog of the application and rebuilt the solution again, repeated the steps above. The setup procedure was workable and the application was installed in the user's PC. But the application failed to run by double clicking it.  

 

Could somebody can suggest there is something worng or something  I missed to package in the installer? I apprecaite if you can give more details about creating an installer for my appliication.

 

Thanks very much,

 

George L

UNSW, Australia

 

0 Kudos
Message 1 of 8
(4,884 Views)
Hello

Make sure you include all the msm's that are listed in the help topic "Distributing Measurement Studio Visual C++ Applications". You might not be including some dependencies for the Knob and the Graph. I'm assuming you are using the ActiveX controls with the C++ (MFC) CNi classes. For the UI controls, you need the following msms in your installer

CWUI_OCX.msm
NIMesaDLL.msm
nimetautils.msm


You can find the Help topic with the comprehensive list under the Measurement Studio Help which is integrated into Visual Studio .NET 2003 under Measurement Studio Help >> Distributing Measurement Studio Applications >> Distributing Measuremen Studio C++ Applications.

I hope this helps.
Bilal Durrani
NI
0 Kudos
Message 2 of 8
(4,868 Views)

Thanks Bilal.

I got it. The merge module "nimetautils.msm" was missed before. The application can successfully run on the user's PC. By the way, can I ask a further question? As you know, my application used the "Microsoft Communications Control, version 6.0" active X control for serial communication. Unfortunately, the deployed version of the application can not receive data from the serial port. Why?

Thanks

George  

0 Kudos
Message 3 of 8
(4,864 Views)

I'm not too familiar with the MSCOMM control and how to deploy it correctly, but I would try and add some debugging statements to the released exe, just to make sure there are'nt any errors or anything that you might not be handling correctly. Use the TRACE() macro in an MFC app to print messages to a debugger. Make sure variables are initialized correctly as well.

Bilal Durrani
NI
0 Kudos
Message 4 of 8
(4,852 Views)
I've noticed the MSCOMM.OCX control is not installed on many of the recent XP installations.  You have to install it in the windows/system32 directory and run regsvr or regsvr32 (can't remember which) to register it with the OS.
0 Kudos
Message 5 of 8
(4,816 Views)

有谁知道Measurement Studio for VC++ 中我的生成应用程序中,有时出现这个软件是评估版,只有30天试用期,而且5分钟后就不能用了,但是在别的机器上是好用的,可能好似什么问题啊?好郁闷啊,怎么解决啊?请帮帮我啊!

jeffy2100@sohu.com

0 Kudos
Message 6 of 8
(4,774 Views)

有谁知道Measurement Studio for VC++ 中我的生成应用程序中,有时出现这个软件是评估版,只有30天试用期,而且5分钟后就不能用了,但是在别的机器上是好用的,可能好似什么问题啊?好郁闷啊,怎么解决啊?请帮帮我啊!

jeffy2100@sohu.com

0 Kudos
Message 7 of 8
(4,774 Views)
Please ensure the version of the Measurement Studio installed in your PC is authorized instead of a evaluation version. If you have an authorized vesrion, please reinstall it in your PC. There are three kinds of authorized versions: standard, professional, and enterprise. The functionalities or modules are least in standard version, and the most in the enterprise version.
0 Kudos
Message 8 of 8
(4,768 Views)