Correction of typo in last post:
Step 4 should read
(4) in the program, load the .dll by including the windows API statement
PLIB=LOADLIBRARY("dllname.dll")
PLIB comes back as zero if the .dll failed to load.
I tried passing the subroutine name in an argument list, but that only works if the subroutine is linked into your program. It doesn't work if SUBNAM is a variable with an address in it. However, I have now found the solution, in an obscure part of CVF that I had never had to use before. Here is...
I have been programming in FORTRAN for 47 years, from FORTRAN II up to Compaq Visual Fortran (CVF) and IVF, but recently came up against this simple thing I wanted to do, which I cannot solve either in FORTRAN or Assembler.
I have the address of a routine that I want to call (it's in a .DLL...
So you want an array of entities, each of which comprises an integer and a string?
One way to do it would be to have an integer array and a string array.
You do not say whether the string value is always the same number of characters, or whether the strings are of five characters each, e.g...