LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass a value to a call library function whose input value is defined as a typedef struct

My task is to build a dll project in a c++ enviroment and subsequently import into labview platform. There was this particular function that i import to labview which i am having difficulty. There are two input values. The first value is of ULONG data type which can be easily be mapped onto labview data type.However the second input value is a type defined struct
which include a HANDLE and a POINTER.So how can i be able to map it into labview .Do i need to use cluster or anything to achieve it.
0 Kudos
Message 1 of 2
(2,406 Views)
Hi Derek,
Passing structs to labview is a little difficult. I would suggest using a wrapper function to pass in each individual argument of the struct. There are a few examples of this on zone.ni.com but they are all for CVI, If you have CVI it may be helpful to look at those.
Message 2 of 2
(2,406 Views)