Hello, I have to import a DLL into labview.
The function prototype for the DLL is
bool GetDefects(unsigned char* image, unsigned char* image2, int rows, int cols);
And Labview's DLL Wizard gets this correct character-by-character. No mention of a string.
However when I try to wire up some data to the unsigned char* terminals, labview has now decided that this is a string and won't let me connect to its input (the input is the output of an unbundle box, the image of an 'image data'; which is reported by Labview as "The type of the source is 1D array of unsigned byte [8-bit integer (0 to 255).", ie exactly what my DLL's funtion prototype is designed to accept.
Memory for the unsigned char* array is allocated by the function that calls the sub functions and will change at run time depending on the image size.
So what do I do?
(There are some similar posts on this topic but none that help me.)
Sorry, not a labview programmer, only have to interface a C++ DLL every once in a while.
Thanks again,
Gunter