Hello,
I have a simple VB2008 program that calls a Fortran array-valued function via a (*.dll) file. When I try passing a 1-dimensional .NET array to the Fortran function, it accepts it, performs the calculations, and successfully returns the same shape array back to the .NET framework. However, the array elements are garbage. In addition, if I try passing a multi-dimensional .NET array to the Fortran (*.dll) file I throw an exception. Can anyone give me some helpful advise with regard to passing multi-dimensional arrays between a .NET framework and a Fortran (*.dll) file?
Thank you much!