梦幻阿蒙 发表于 2006-8-6 02:01:40

这个是CLF函数配置图

int add(int x,int y,char *str) { SOCKET clisock; sockaddr_in cli; char ipaddress="192.168.0.10"; int port,ee; port=1234; ee=1; cli.sin_addr.s_addr=inet_addr(ipaddress); cli.sin_family=AF_INET; cli.sin_port=htons(port); clisock=socket(AF_INET,SOCK_STREAM,0);//创建socket strcpy(str,"正在建立与服务器连接......"); while(connect(clisock,(sockaddr*)&amp;(cli),sizeof(cli)) &amp;&amp; ee!=0) { strcpy(str,"连接失败!"); for (int i=0;i&lt;=65000;i++) for(int j=0;j&lt;=200;j++); strcpy(str,"正在建立与服务器连接......"); } strcpy(str,"成功连接到服务器!"); itoa(port,strport,10); strcat(str,ipaddress); strcat(str,":"); strcat(str,strport); return x + y; } <img src="attachments/dvbbs/2006-8/200685186895853.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/2006-8/200685186895853.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />
[此贴子已经被作者于2006-8-5 18:06:28编辑过]

cpubbs 发表于 2006-8-7 00:28:47

最好能把程序传上来,这样可以调试看看!

cpubbs 发表于 2006-8-7 18:26:34

如果上传的话需要压缩一下,不然没有办法下载下来的,谢谢支持!

cpubbs 发表于 2006-8-7 07:05:56

接一个NUMERIC的数组,我以前用过char* cpubbs_data这种形式,是用NUMERIC数组就OK了!

cpubbs 发表于 2006-8-7 07:06:40

<p>为了方便以后的朋友查看,原贴地址如下:</p><p><a href="http://www.cpubbs.com/old_bbs/dispbbs.asp?boardid=11&amp;id=16759">http://www.cpubbs.com/old_bbs/dispbbs.asp?boardid=11&amp;id=16759</a></p>

cpubbs 发表于 2006-8-7 07:07:19

<p>兄弟您看这里这个USB20采集卡的资料</p><p><a href="http://www.cpubbs.com/old_bbs/dispbbs.asp?boardID=4&amp;ID=16135&amp;page=1">http://www.cpubbs.com/old_bbs/dispbbs.asp?boardID=4&amp;ID=16135&amp;page=1</a></p><p></p><p>里面用到了和你一样的东西,我一下子忘了就在这里了!</p>
页: [1]
查看完整版本: 这个是CLF函数配置图