View previous topic :: View next topic |
Author |
Message |
HaymoKutschbach
Joined: 16 Mar 2012 Posts: 13
|
Posted: Mon Mar 26, 2012 10:37 pm Post subject: Problem using 'Salford.Fortran.Character' from C# |
|
|
Thanks for your great support so far! I have been able to generate a managed LAPACK from the (slightly altered) official sources at netlib.org.
Now, I am stuck with an interfacing issue: in a FORTRAN function, a parameter of
CHARACTER*( * ) NAME
is translated to
Salford.Fortran.Character*
in the .NET assembly. This is an .NET enum type, declared in ftn95lib.dll. Could you point me to a documentation on how to use this type in lets say, C# to call any generated function using that type as parameter? Thanks again! |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8211 Location: Salford, UK
|
Posted: Tue Mar 27, 2012 11:56 am Post subject: |
|
|
In FTN95.chm look under .NET Programming and then "Calling Fortran from other .NET languages". Under item 2 it says "Fortran CHARACTERs are mapped to System.String objects...".
Also look at the section on ".NET sting type". |
|
Back to top |
|
 |
HaymoKutschbach
Joined: 16 Mar 2012 Posts: 13
|
Posted: Wed Mar 28, 2012 8:59 pm Post subject: |
|
|
Thanks! According to the documentation, one has to use
ASSEMBLY_INTERFACE(...)
on all methods which are to be used from .NET. This will expose System.string parameter types for all CHARACTER arguments - which is nice ! |
|
Back to top |
|
 |
|