
Passing Arrays to Fortran DLL from VB
Quote:
>I can easily pass integers back and forth from VB (excel) to a fortran DLL
>but cannot seem to do the same with arrays.
It's been some time since I did that (with VB5 and Digital Visual Fortran)
but as I recall the Fortran DLL is expecting to be passed the address of the
first member of the array, so when you call it the parameter to pass is
yourarray(0) (replace 0 with whatever is your
base) and do it ByRef not ByVal.
Cheers, Russell Robinson