Hi! I have made a DLL in C++/MFC. I have to implement a function that can fill a LabView 2D-array with some data. How can that be done?
I suppose the function should look something like this: int MyDllFunction(unsigned char **matrix, int width, int height) { for (int r = 0; r < height; r++) { for (int c = 0; c < width; c++) matrix[r][c] = SomeData(r, c); } return 1; } Where should the memory of the array be declared? Maybe LabView can allocate the memory itself and pass the function a char-array (together with the width and height) to my function? How does it work? Any help is really appreciated! Thanks! /Chris