怎样在LabWindows/CVI中使用Active Control(.OCX文件)



主要软件: LabWindows/CVI Development Systems
主要软件版本: N/A
主要软件修正版本: N/A
次要软件:

问题: 怎样在LabWindows/CVI中使用Active Control(.OCX文件)

解答: LabWindows/CVI5.5和更低的版本不支持ActiveX容器,这也就是说你不能在CVI程序中嵌入ActiveX控件。但是,你可以把.OCX文件嵌入到.DLL文件中,然后可以在CVI中调用DLL。
在CVI中嵌入ActiveX控件是6.0版本的新特性。另外,通过使用ActiveX Automation Controller Wizard,你能生成与控件接口对应的函数。Wizard的作用是生成一个与控件对应的instrument driver。这样,你在CVI中就可以像使用instrument driver一样调用ActiveX的接口函数。

相关链接: KnowledgeBase 1V2DM98M: Using the ActiveX Automation Controller Wizard to Generate Code in LabWindows/CVI 5.5 or 6.0
KnowledgeBase 1V18J38M: What ActiveX Features Does LabWindows/CVI Support?
Product Manuals: LabWindows/CVI 5.0 Standard Libraries Reference Manual
Product Manuals: Measurement Studio LabWindows/CVI User Manual


附件:





报告日期: 01/08/2001
最近更新: 12/22/2003
文档编号: 257GPNJO