In 2009, I wrote a little application that involved calling a Fortran DLL (contents unavailable) into a VB.NET application. It worked. However, I now need to revisit the code and have found the the VB.NET application won't run from the original source code if it is compiled in Visual Studio Community 2017.
The arguments of the Fortran dll are a combination of arrays of integers, reals and chars:
SV is a string (array of Fortran characters?) IV is an array of Fortran integers RV is an array of Fortran reals
Within the VB code, I have used:
Dim IV(1279) As Integer Dim RV(15999) As Single Dim IERR As Integer Dim SV As New String(" ", 5120) Dim FileDir As New String(" ", 64) Call FORT_SUB(SV, 5120, IV(1), RV(1), IERR)
The resulting EXE crashes at the Call line. I can only think the syntax requirements must have changed slightly and that I now need to make the Fortran call slightly differently...