LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading strings (char**) from a dll

Hi,
I have a dll with a function in which one of its parameters is an array of strings (char**). How can I call this function and assign the string output to a 1-d string array in LV? I would appreciate it if someone could attach a sample code. I know that someone had asked the similar question in the Discussion Forums however the answer did not help me.
I appreciate your help.
Thanks
0 Kudos
Message 1 of 2
(2,767 Views)
If the array is contiguous in memory, then pass it into LabVIEW as a 2-D byte array and then type cast it to a string. If the memory is not contiguous, then you will have to make it so or pass each of the stings individually. LabVIEW stores all arrays contiguously.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,767 Views)