waterfish 发表于 2005-5-28 16:16:42

请问在CVI7.0中怎么使用扩展C?

<P>我想在CVI中使用我的采集卡,但我把采集卡的头文件加进去的时候却编译出错,我把LIB文件,DLL文件,头文件都加进去 了,而且我 在VC中加的时候没有出现这种错,但我还是想用CVI来作,因为它处理数据方便一些,问题应该是不认扩展C吧,请高手指教</P>
<P>头文件见附件</P>

waterfish 发表于 2005-5-28 16:26:57

小弟附上全部程序


出错信息出图:
<img src="attachments/dvbbs/2005-5/200552882644917.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2005-5/200552882644917.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />

Harry 发表于 2005-5-28 18:23:37

<P>extern "C"必须使用在C++环境中,表示标准C调用</P>
<P>用结构体声明对象,前面必须加struct</P>
<P>修改过的程序见附件</P>

waterfish 发表于 2005-5-28 18:29:12

<P>非常感谢Harry!</P>

waterfish 发表于 2005-5-28 20:23:37

整了好多天都没整出来的

<P>版主一下就帮我解决了,再次感谢!</P>

Harry 发表于 2005-6-4 04:43:41

<P>不用谢,互相帮忙嘛!</P>

ZGJG712 发表于 2016-8-8 13:54:15

1

ZGJG712 发表于 2016-8-8 13:55:23

本帖最后由 ZGJG712 于 2016-8-8 13:59 编辑


labwindows/cvi虚拟仪器论坛讨论区

ZGJG712 发表于 2016-8-8 13:55:27

本帖最后由 ZGJG712 于 2016-8-8 13:58 编辑

   labwindows/cvi虚拟仪器论坛讨论区

ZGJG712 发表于 2016-8-8 13:56:16

1

ZGJG712 发表于 2016-8-8 13:56:19

1
页: [1]
查看完整版本: 请问在CVI7.0中怎么使用扩展C?