F
fahd
Hi,
I'm trying to communicate with an unmanaged c++ dll that takes two 2d
float arrays, one as input with data in it and the other will have the
result of the operation in it as follows:
bool Evaluate(float** input,float** output,int nFrames, int
featureWidth);
note: nFrames and featureWidth will determine the sizes of input and
output arrays in the c++ code.
Using this method in c# requires you to use float multidimensional
arrays. However I keep on getting exceptions thrown by the dll while
the same code works fine in a normal console application!
Trying to debug the dll as much as i can i figured out that the arrays
are not being passed correctly. can anybody help me out here, how
would I pass a 2 dimentional array to unmanaged c++ function?
Thanks
I'm trying to communicate with an unmanaged c++ dll that takes two 2d
float arrays, one as input with data in it and the other will have the
result of the operation in it as follows:
bool Evaluate(float** input,float** output,int nFrames, int
featureWidth);
note: nFrames and featureWidth will determine the sizes of input and
output arrays in the c++ code.
Using this method in c# requires you to use float multidimensional
arrays. However I keep on getting exceptions thrown by the dll while
the same code works fine in a normal console application!
Trying to debug the dll as much as i can i figured out that the arrays
are not being passed correctly. can anybody help me out here, how
would I pass a 2 dimentional array to unmanaged c++ function?
Thanks