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

資源簡介

LabWindowsCVI虛擬儀器測試技術及工程應用光盤代碼實例

資源截圖

代碼片段和文件信息

#include?
#include?
#include?
#include?“dllexe.h“
#include?“dllsample.h“??//外部模塊的頭文件

static?int?panelHandle;

int?main?(int?argc?char?*argv[])
{
if?(InitCVIRTE?(0?argv?0)?==?0)
return?-1; /*?out?of?memory?*/
if?((panelHandle?=?LoadPanel?(0?“dllexe.uir“?PANEL))? return?-1;
DisplayPanel?(panelHandle);
RunUserInterface?();
DiscardPanel?(panelHandle);
return?0;
}

int?CVICALLBACK?QuitCallback?(int?panel?int?control?int?event
void?*callbackData?int?eventData1?int?eventData2)
{
switch?(event)
{
case?EVENT_COMMIT:
QuitUserInterface?(0);
break;
}
return?0;
}

int?CVICALLBACK?calc?(int?panel?int?control?int?event
void?*callbackData?int?eventData1?int?eventData2)
{
????int?(*address)?(int?x?int?y);
int?mode;
int?z;
int?y;
int?x;
int?status;
int?moduleid;
switch?(event)
{
case?EVENT_COMMIT:
GetCtrlVal?(panelHandle?PANEL_NUMERIC_X?&x);
GetCtrlVal?(panelHandle?PANEL_NUMERIC_Y?&y);

//mode為0調用.lib模塊,為1調用.obj模塊
GetCtrlVal?(panelHandle?PANEL_BINARYSWITCH?&mode);?
if?(mode)
{
moduleid?=?LoadExternalModule?(“dllsample.obj“);?
}
else
{
moduleid?=?LoadExternalModule?(“dllsample.lib“);?
}

//得到function2首地址指針
address?=?GetExternalModuleAddr?(moduleid?“function2“?&status);

//調用function2函數,傳遞xy值,返回兩者和賦給z
z?=?(*address)?(x?y);
SetCtrlVal?(panelHandle?PANEL_NUMERIC_Z?z);

//釋放模塊
UnloadExternalModule?(moduleid);
break;
}
return?0;
}

int?CVICALLBACK?popup?(int?panel?int?control?int?event
void?*callbackData?int?eventData1?int?eventData2)
{
void?(*address)(void);
int?mode;?
int?status;
int?moduleid;
switch?(event)
{
case?EVENT_COMMIT:

//mode為0調用.lib模塊,為1調用.obj模塊
GetCtrlVal?(panelHandle?PANEL_BINARYSWITCH?&mode);?
if?(mode)
{
moduleid?=?LoadExternalModule?(“dllsample.obj“);?
}
else
{
moduleid?=?LoadExternalModule?(“dllsample.lib“);?
}

//得到function1首地址指針
address?=?GetExternalModuleAddr?(moduleid?“function1“?&status);

//調用function1函數,不傳遞任何參數
(*address)?();

//釋放模塊
UnloadExternalModule?(moduleid);?
break;
}
return?0;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-10-04?19:33??LabWindowsCVI技術及工程應用_代碼\
?????目錄???????????0??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\
?????目錄???????????0??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\depends\
?????文件????????1317??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\depends\depends.cnt
?????文件????????7168??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\depends\depends.dll
?????文件??????634880??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\depends\depends.exe
?????文件???????10846??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\depends\depends.GID
?????文件??????128430??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\depends\depends.hlp
?????目錄???????????0??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\
?????目錄???????????0??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\
?????目錄???????????0??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllexe\
?????文件????????1253??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllexe\build.ini
?????文件???????????4??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllexe\dependencies.bri
?????文件???????68559??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllexe\dllexe.nidobj
?????文件???????20712??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllexe\dllsample.nidobj
?????文件????????1960??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllexe\resources.res
?????目錄???????????0??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllsample\
?????文件????????1319??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllsample\build.ini
?????文件???????????4??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllsample\dependencies.bri
?????文件???????54338??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllsample\dllsample.nidobj
?????文件?????????936??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\cvibuild.dllsample\resources.res
?????文件????????4099??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\dll.cws
?????文件????????2379??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\dllexe.c
?????文件????????4167??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\dllexe.cws
?????文件????????1829??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\dllexe.h
?????文件????????3292??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\dllexe.prj
?????文件????????5528??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\dllexe.uir
?????文件??????696859??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\dllexe_dbg.cdb
?????文件??????223232??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\dllexe_dbg.exe
?????文件?????????789??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\dllsample.c
?????文件??????686042??2016-09-12?11:38??LabWindowsCVI技術及工程應用_代碼\10\dll\dll顯式調用\dllsample.cdb
............此處省略873個文件信息

評論

共有 條評論