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 

Calling .NET dll from FTN95

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



Joined: 20 Mar 2014
Posts: 23

PostPosted: Mon May 17, 2021 10:48 pm    Post subject: Calling .NET dll from FTN95 Reply with quote

I am trying to call a 3rd party .NET dll from fortran program and can't seem to get it working. Following along with the Help documentation, I am trying to use ASSEMBLY_EXTERNAL() and OBJECT(), but keep getting this error:

"error 810 - ASSEMBLY_EXTERNAL is only allowed in CLR mode (with /CLR switch specified)"

This error persists even when I add the /CLR directive through Project Compiler Options or to the appropriate line of a build script.

Can anyone help me figure out what I'm missing? Is there a working example of Fortran calling a .NET dll that I could study?

Thanks very much for any help!
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue May 18, 2021 7:14 am    Post subject: Reply with quote

Clay

Can you post a short subprogram that illustrates the failure?
Back to top
View user's profile Send private message AIM Address
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