ap4115 发表于 2006-8-11 01:32:01

有关调用actvveX控件时的register event callbck?

在调用activeX控件时有一个register eveint callback模块,把它连到activeX控件后就出来一个“VI ref” 这个VI ref应该连什么东西?

cpubbs 发表于 2006-8-11 06:06:48

一些什么属性调用之类的都会用到这个REF!

szb 发表于 2006-8-11 06:52:33

<p>在连线端弹出右键菜单,选择“Create Callback VI”后,会自动打开一个新的VI,在里边通常已定义好了几个控件,你可以根据提供的控件作相应的处理。</p><p>在LV帮助文件中有明确的解释:“<strong>VI reference</strong> is a strict VI reference to the callback VI. National Instruments recommends that the callback VI you use be reentrant. If the VI is not reentrant, it cannot be called simultaneously if the event occurs multiple times.” ,实际上,通过上述方式增加的新的VI,已经定义了重入。</p><p>另外,LV中还提供了两个实例,你搜一下Callback就能找到。</p>
页: [1]
查看完整版本: 有关调用actvveX控件时的register event callbck?