Dear Forums,
I am developing an application in Visual Studio C# and passing arguments from C# into FORTRAN.
I am having problems passing integers and character strings. C# is not my strongest programming language. Here's is the syntax I am trying to implement:
int i = 50;
int* ircnt = &i;
char cright;
char title1;
char title2;
char version;
char year;
ASME97RefProps.SPINIT(i, cright, title1, title2, version, year);
Visual studio is throwing an error, 'No overload for method 'SPINIT' takes '6' arguments'
Here's the FORTRAN code I am trying to call from C#
C************************************************************* SUBROUTINE SPINIT(irrc,cr,title1,title2,version,year) implicit DOUBLE PRECISION(a-h,o-z) C************************************************************* C include 'nstmcon.inc' include 'nuconv.inc' include 'ntol.inc' include 'nlevel.inc' C character60 cr character40 title1,title2 character10 version character4 year