91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.12MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-08-13
  • 語言: 其他
  • 標簽: labwindows??CVI??

資源簡介

labwindows CVI 教程.rar ,挺詳細的。

資源截圖

代碼片段和文件信息

#include?
#include?
#include? /*?Needed?if?linking?in?external?compiler;?harmless?otherwise?*/
#include?
#include?“sample10_1.h“

static?int?panel;
int?Type=1ConnectedHandle;
char?Machine[100]={““};
int?CVICALLBACK?ClientCallback(unsigned?handle?int?event?
int?error?void?*callbackData);???
int?CVICALLBACK?ServerCallback(unsigned?handle?int?event?
int?error?void?*callbackData);??
void?Start(void);
int?main?(int?argc?char?*argv[])
{
if?(InitCVIRTE?(0?argv?0)?==?0) /*?Needed?if?linking?in?external?compiler;?harmless?otherwise?*/
return?-1; /*?out?of?memory?*/
if?((panel?=?LoadPanel?(0?“sample10_1.uir“?PANEL_2))? return?-1;
DisplayPanel?(panel);
RunUserInterface?();
return?0;
}

int?CVICALLBACK?Send?(int?panel?int?control?int?event
void?*callbackData?int?eventData1?int?eventData2)
{
char?buf[100][101];
int?numi;
if(event==EVENT_COMMIT){
GetNumTextBoxLines?(panel?PANEL_SENDDATA?&num);
for(i=0;i GetTextBoxLine?(panel?PANEL_SENDDATA?i?buf[i]);
for(i=0;i if(Type)??//server
ServerTCPWrite?(ConnectedHandle?buf[i]?100?0);
else ??//client
ClientTCPWrite?(ConnectedHandle?buf[i]?100?0);??
}
return?0;
}??

int??CVICALLBACK?Clear(int?panel?int?control?int?event?
void?*callbackData?int?eventData1?int?eventData2)?????????
{
if(event==EVENT_COMMIT)????
ResetTextBox?(panel?PANEL_RECEIVEDATA?““);
return?0;
}??
int?CVICALLBACK?quit?(int?panel?int?control?int?event
void?*callbackData?int?eventData1?int?eventData2)
{
if(event==EVENT_COMMIT)
{
QuitUserInterface?(0);
if(Type)//server
UnregisterTCPServer?(2001);
else?
if(ConnectedHandle)
DisconnectFromTCPServer?(ConnectedHandle);?
}
return?0;???
}

int?CVICALLBACK?ok?(int?panel?int?control?int?event
void?*callbackData?int?eventData1?int?eventData2)
{
if(event==EVENT_COMMIT)?{
if(Type==0)??//client
GetCtrlVal?(panel?PANEL_2_STRING?Machine);
DiscardPanel(?panel);
panel?=?LoadPanel?(0?“sample10_1.uir“?PANEL);
Start();
if(Type)?//server
SetCtrlVal?(panel?PANEL_TEXTMSG?“Run?in?Server?Mode“);
else?
SetCtrlVal?(panel?PANEL_TEXTMSG?“Run?in?Client?Mode“);?
DisplayPanel?(panel);?
}
return?0;
}
int?CVICALLBACK?SelectType?(int?panel?int?control?int?event
void?*callbackData?int?eventData1?int?eventData2)
{
if(event==EVENT_COMMIT)?{
?GetCtrlVal?(panel?PANEL_2_BINARYSWITCH?&Type);???
if(Type==0)?//client
SetCtrlAttribute?(panel?PANEL_2_STRING?ATTR_DIMMED?0);
else? //server
SetCtrlAttribute?(panel?PANEL_2_STRING?ATTR_DIMMED?1);?
}
return?0;
}
int?CVICALLBACK?Timer?(int?panel?int?control?int?event
void?*callbackData?int?eventData1?int?eventData2)
{
char?buf[100];
if(event==EVENT_TIMER_TICK)???//client
?if(!ConnectToTCPServer?(&ConnectedHandle?2001?Machine?ClientCallback?0?0))
?{??//no?error
GetTCPPeerAddr?(ConnectedHandlebuf?50);
SetCtrlVal?(panel?PANEL_CONNECTEDIP?bu

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????5495??2001-08-22?09:44??labwindows?CVI?教程\10_1\sample10_1.c

?????文件??????83456??2001-08-22?09:44??labwindows?CVI?教程\10_1\sample10_1.exe

?????文件???????1804??2001-08-22?09:44??labwindows?CVI?教程\10_1\sample10_1.h

?????文件???????4194??2001-08-22?09:44??labwindows?CVI?教程\10_1\sample10_1.prj

?????文件???????5384??2001-08-22?09:44??labwindows?CVI?教程\10_1\sample10_1.uir

?????文件?????401178??2001-08-22?09:44??labwindows?CVI?教程\11_1\cvi_db.fp

?????文件??????28329??2001-08-22?09:44??labwindows?CVI?教程\11_1\cvi_db.h

?????文件??????75070??2001-08-22?09:44??labwindows?CVI?教程\11_1\cvi_db.lib

?????文件????????302??2001-08-22?09:44??labwindows?CVI?教程\11_1\database\flowchrt.dbf

?????文件?????163840??2001-08-22?09:44??labwindows?CVI?教程\11_1\database\samples.mdb

?????文件?????131072??2001-08-22?09:44??labwindows?CVI?教程\11_1\database\student.mdb

?????文件????????345??2001-08-22?09:44??labwindows?CVI?教程\11_1\database\testres.dbf

?????文件??????51057??2001-08-22?09:44??labwindows?CVI?教程\11_1\database\WEATHER.DBF

?????文件???????8082??2001-08-22?09:44??labwindows?CVI?教程\11_1\sample11_1.c

?????文件?????101888??2001-08-22?09:44??labwindows?CVI?教程\11_1\sample11_1.exe

?????文件???????3387??2001-08-22?09:44??labwindows?CVI?教程\11_1\sample11_1.h

?????文件???????6777??2001-08-22?09:44??labwindows?CVI?教程\11_1\sample11_1.prj

?????文件??????10120??2001-08-22?09:44??labwindows?CVI?教程\11_1\sample11_1.uir

?????文件??????53360??2001-08-22?09:44??labwindows?CVI?教程\12_1\RS.c

?????文件??????54390??2001-08-22?09:44??labwindows?CVI?教程\12_1\RS.c.bak

?????文件?????131765??2001-08-22?09:44??labwindows?CVI?教程\12_1\RS.fp

?????文件?????131765??2001-08-22?09:44??labwindows?CVI?教程\12_1\RS.fp.bak

?????文件??????11418??2001-08-22?09:44??labwindows?CVI?教程\12_1\RS.h

?????文件??????11613??2001-08-22?09:44??labwindows?CVI?教程\12_1\RS.h.bak

?????文件??????10356??2001-08-22?09:45??labwindows?CVI?教程\12_1\RS.sub

?????文件??????10354??2001-08-22?09:45??labwindows?CVI?教程\12_1\RS.sub.bak

?????文件????????431??2001-08-22?09:45??labwindows?CVI?教程\12_1\sample12_1.c

?????文件???????4580??2001-08-22?09:45??labwindows?CVI?教程\12_1\sample12_1.prj

?????文件???????1823??2001-08-22?09:45??labwindows?CVI?教程\12_2\sample12_2.c

?????文件??????81408??2001-08-22?09:45??labwindows?CVI?教程\12_2\sample12_2.exe

............此處省略471個文件信息

評論

共有 條評論