replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Problem using 'Salford.Fortran.Character' from C#
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem using 'Salford.Fortran.Character' from C#

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
HaymoKutschbach



Joined: 16 Mar 2012
Posts: 13

PostPosted: Mon Mar 26, 2012 10:37 pm    Post subject: Problem using 'Salford.Fortran.Character' from C# Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8211
Location: Salford, UK

PostPosted: Tue Mar 27, 2012 11:56 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
HaymoKutschbach



Joined: 16 Mar 2012
Posts: 13

PostPosted: Wed Mar 28, 2012 8:59 pm    Post subject: Reply with quote

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 Smile !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group