NI Measurement Studio 打包问题的解决(原创)

问题及现象:

程序中调用了NI的Led、switch等控件的3D样式,在开发环境下可正常显示,但打包后装入新系统后出现不能正常显示的问题。

解决:

1、在NI网上查到如下信息:

Why Do Measurement Studio 3D Style UI Objects Not Display In My Installer Application?

Problem:
I deployed a Measurement Studio application but some 3D Style UI controls, such as LED or gauge, doesn't show on screen while other controls, such as graphs, show fine. The application runs fine on my own machine where I have installed the Measurement Studio environment. When I install the application on other machine, I still have that problem. How can i solve this issue?
Solution:
A common cause for 3D Style UI objects to not display when deployed to a new system is that the Mesa.dll is missing. Mesa.dll contains the information that the application needs to render the 3D control styles. Make sure that NIMesaDLL.msm is included in your Visual Studio setup project. Refer to the Measurement Studio help topic Measurement Studio .NET Merge Modules for information on which assemblies your application needs.
Use the directions in the Measurement Studio Help topic Deploying Measurement Studio Applications to create a deployment for Measurement Studio applications.

可以参考以下信息:

http://digital.ni.com/public.nsf/allkb/ABAE912AAE671AC08625788D0076BE51?OpenDocument

http://digital.ni.com/public.nsf/allkb/6677098983C36F9086256CFE007F457A?OpenDocument

其中提到两点:

1)NIMesaDLL.msm合并模块要加入打包文件中。

2)Mesa.dll的使用。

说明:

1、在加入NIMesaDLL.msm前提下,xp下一定要加入Mesa.dll,但Win7系统下可以不加也能正常显示。

2、后来测试不用加NIMesaDLL.msm,只加Mesa.dll到安装目录下面就可以正常显示了

3、请注意上述两个文件的版本及Measurement Studio其它DLL的版本问题

 

 

 

转载于:https://www.cnblogs.com/xyqCreator/archive/2012/12/28/2837094.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值