I am trying to use a Fortran DLL in C# and I have no experience in Fortran. The parts I am having problems are with output arguments of the dll, specifically with characters. In the Fortran code they are defined as:
character*32 JobName
character*(*) Fname
character*80 Title(2)
Does anyone know the equivalent in C#? All the others are ints so I can deal with them. From reading around, I cant directly use char as it is 8 bytes in C# and 4 in Fortran.
More of the Fortran code is below:
*deck,ResRdBegin
function ResRdBegin (Nunit, Lunit, Fname, ncFname, Title, JobName, Units, NumDOF, DOF, UserCode, MaxNode, NumNode, MaxElem, NumElem, MaxResultSet,NumResultSet)
integer ResRdBegin, Nunit, Lunit, ncFname, Units, iTemp(100), NumDOF, DOF(*), UserCode, kbf, NumResultSet, MaxNode, NumNode, MaxElem, NumElem, MaxResultSet, i,j
character*32 JobName
character*(*) Fname
character*80 Title(2)