开发环境:vs2008 sp1, WTL 8.1, cwui.ocx 8.6.11 Release (473)
一,介绍
Measurement Studio ActiveX 支持的控件列表:
http://www.ni.com/mstudio/activex_ui_gallery.htm二,安装
方法1)
安装 MeasurementStudio,但是从评估板激活后转为正式版后,ActiveX还是会有"evaluation copy"的水印。这时需要删除MeasurementStudio,重新安装。
方法2)
只安装ActiveX控件,"ActiveX 纯净包" 下载地址在:
ftp://ftp.ni.com/support/softlib/measurement_studio/Misc/NIActiveXUpdater.exe
只需要序列号,不需要激活之类的操作,方便安装。而且ocx的版本比MeasurementStudio 2012的稍微高些。
三,使用
在头文件 stdafx.h 中增加:
#import "C:\Windows\system32\cwui.ocx" rename_namespace("Ni") no_auto_exclude

本文介绍了如何在WTL环境下使用Measurement Studio的ActiveX控件。首先,列举了Measurement Studio ActiveX支持的控件列表。接着,详细说明了两种安装方法,包括完整安装Measurement Studio和仅安装ActiveX纯净包。最后,展示了如何在项目中声明和实例化DCWGraph控件,并用其画出两条正弦曲线作为示例。
最低0.47元/天 解锁文章
581

被折叠的 条评论
为什么被折叠?



