wrapper.c
来自「LabVIEW宝典 .part2」· C语言 代码 · 共 20 行
C
20 行
/***********************************************************************
* This program breaks the add structure into its components to be used *
* in LabView more readily. This way, LabView can unbundle a cluster *
* and assign the indivual elements to the parameters listed in this *
* function Wrap_dll_function (int x, double y, double* z) *
************************************************************************/
#include "Add.h"
#include "Wrapper.h"
int __stdcall Wrap_dll_function (int x, double y, double* z)
{
add temp;
temp.first = x;
temp.second = y;
temp.result = z; /*calls the code that adds the numbers. */
return dll_function(temp);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?