I am trying to pass an 2-D array from an Excel VBA code to a FORTRAN dll which I made with the Intel FORTRAN 2013 compiler in Visual Studio 2013. I have tried in VB.net and C# ,and it works well. But when I call the dll from Excel VBA, it always tell me thay overflow.
The attachment includs an excel file and fortran code. Maybe the Directory need to be change to your own.
Any help would be appreciated.
It is outside my experience, but you should look at this thread:
Note that multidimensional arrays require special treatment (or did in 2011, anyway). Perhaps it would be easier to restructure your code to use 1D arrays.