Hi,
I can't find the way to pass an array of strings from Labview to a dll with a prototype as shown below:
void WriteRegisters (unsigned int uiArraySize, unsigned int uiArrayOfValues[], char *ArrayOfNames[])
the 2 last parameters are arrays, and uiArraySize is their size.
From Labview, I insert in a diagram the "call library function" object, link to the dll, but it doesn't recognize the parameters types of this function.
As written in the development library, I force the 2nd parameter to "Array" of "unsigned 32-bits integer", its OK (I can get the values in the C Code)
I try to do the same with the 3rd parameter, it doesn't work (I thougth it was possible to force it a an "Array" of "unsigned 8-bit
s integer" . So I test the option "Adapt to type" and "handle by value" as it was described in a NI sample, but when I debug in CVI (in the function body), I can't retrieve the parameters passed from Labview.
I can modify the C function prototype, but only with basic types, as char ** for example (no CStr or LSTrHandle...)
If someone can solve the problem...
Kindest,
Zib