- Joined
- Nov 3, 2008
- Messages
- 1
- Reaction score
- 0
hi,
I am very new to .net technologies. I have to write c++ dll which returns a 2-dimensional array of float (probably I return it as float** from c++) and use it in C# website.
here is how my C++ code looks like -
float** getData(int CurretNode, int SliderPosition){
//return float array
}
-------------------
and C# side,
I know how to process with 1-D array but not sure of 2-D array :-(
I am trying to use IntPtr and
System.Runtime.InteropServices.Marshal.Copy but no luck.
Can someone please help me.
Thanks in advance,
Vishala.
I am very new to .net technologies. I have to write c++ dll which returns a 2-dimensional array of float (probably I return it as float** from c++) and use it in C# website.
here is how my C++ code looks like -
float** getData(int CurretNode, int SliderPosition){
//return float array
}
-------------------
and C# side,
I know how to process with 1-D array but not sure of 2-D array :-(
I am trying to use IntPtr and
System.Runtime.InteropServices.Marshal.Copy but no luck.
Can someone please help me.
Thanks in advance,
Vishala.