Silverfrost Forums

Welcome to our forums

Problems Passing Attributes from C# to FORTRAN Sub

2 Sep 2011 4:55 #8898

I am having a very difficult time passing attributes from a Visual Studio C# function into a compile FORTRAN Subroutine. I can't seemed to figure out the attribute declarations.

Here's the main error message,

Error 4 The best overloaded method match for 'NIST_Fluid_Props.SETUP(int*, Salford.Fortran.Character*, Salford.Fortran.Character*, Salford.Fortran.Character*, int*, Salford.Fortran.Character*, int, int, int, int)' has some invalid arguments

It is telling me some invalid arguments....but not which ones.

Here are the remaining errors:

Error 5 Argument 1: cannot convert from 'int' to 'int*' Error 7 Argument 3: cannot convert from 'string' to 'Salford.Fortran.Character*' Error 8 Argument 4: cannot convert from 'char[]' to 'Salford.Fortran.Character*'

Please login to reply.