
external function with array of strings parameter
Well, the array of strings is just an an array of pointers to strings,
which in LabVIEW can be assumed to be just an array of 32 bit
integers. The problem is that those string pointers have to map to
valid places in memory. That means we need to generate valid string
pointer in LabVIEW and build them into an array. There are two ways I
know of to do this. One is to use the lstrcpy function from the
kernel32.dll which copies a string into another and returns a pointer
to the string if successful. You can also use a VI from the Pointer
Utility Library to do the same thing:
http://zone.ni.com/devzone/explprog.nsf/webmain/C94071199E8F18AD86256...
If the strings are inputs to the function, then you would insert the
proper strings before calling the DLL function. If the array is an
output, then you will have to make sure each of the strings is large
enough for what will be put into it.
Alternatively, you can of course make a wrapper function for calling
the DLL from LabVIEW.