We have a vb interface that calls functions from a Fortran DLL. Below is our code. Our problem is, VB will only allow us to hard code a string into our declare statement. We would like to be able to use a variable or so we can let the user install the dll wherever they choose. Is it possible to do this? Do we need to make our declare statement different? It is currently located in the general declarations.
Thanks in advance for any assistance you can provide.
'Connection to Fortran DLL containing conversion code:
Private Declare Sub ZCOORDS Lib "c:\temp\BMX5CONVERT.DLL" (IRLAT As Double, ByVal RLATDIR As String, _
ByVal STR_RLATDIR_LEN As Long, IRLON As Double, ByVal RLONDIR As String, _
ByVal STR_RLONDIR_LEN As Long, IMODE As Long, _
ILAT As Double, ByVal LatDir As String, ByVal STR_LATDIR_LEN As Long, _
ILON As Double, ByVal LonDir As String, ByVal STR_LONDIR_LEN As Long, _
XNFT As Single, YEFT As Single)
Thanks in advance for any assistance you can provide.
'Connection to Fortran DLL containing conversion code:
Private Declare Sub ZCOORDS Lib "c:\temp\BMX5CONVERT.DLL" (IRLAT As Double, ByVal RLATDIR As String, _
ByVal STR_RLATDIR_LEN As Long, IRLON As Double, ByVal RLONDIR As String, _
ByVal STR_RLONDIR_LEN As Long, IMODE As Long, _
ILAT As Double, ByVal LatDir As String, ByVal STR_LATDIR_LEN As Long, _
ILON As Double, ByVal LonDir As String, ByVal STR_LONDIR_LEN As Long, _
XNFT As Single, YEFT As Single)