LabVIEW string/array Type
LabVIEW有其定義的string類型: LStrHandle。
————————————————————————————————————————————————————--------------------------------------------------------------------------------------------
C++的code如下:
#include "extcode.h"
// "extcode.h" 的路徑是在C:Program FilesNational InstrumentsLabVIEW 2009cintools 里面。如果想用到extcode里面的一些函數(shù),需要鏈接庫labview.lib
typedef struct {
} **LStrArrHd1;
extern "C" _declspec (dllexport ) void strArrayTest(LStrArrHd1 strArray);
void strArrayTest(LStrArrHd1 strArray)
{
}
dll的parameter屬性如下:

——————————————————————————————————————————————
Labview具體的string、array類型如下:


例子如下:


評論