Passing a 2d array to a DLL written in C++

2004-04-20 Thread znakeeye
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++)

Re: Passing a 2d array to a DLL written in C++

2004-04-20 Thread znakeeye
Rolf <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > znakeeye wrote: > > 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? > > >

Re: Passing a 2d array to a DLL written in C++

2004-04-20 Thread znakeeye
Evan <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Chris, > > I just wanted to add my 2 cents on the topic. Rolf has got you down > the correct path, however there is an example that I think will really > help you. > > It ships with LabVIEW 7.0 and can be found at C:\Program

Re: Passing a 2d array to a DLL written in C++

2004-04-20 Thread znakeeye
rolf <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > >So basically my function is valid (although I have to switch rows and > >columns for a valid result) and all I need is to make a LabView > >program that allocates a 2d-array and passes it to this dll function? > > Well, not s