replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - dll communication
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 

dll communication

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



Joined: 15 Apr 2009
Posts: 1

PostPosted: Thu Apr 16, 2009 10:05 am    Post subject: dll communication Reply with quote

Hello,

I'm trying to run fortran dlls from visual basic. I can compile the dlls and call them from the main visual basic code fine, the problem is I need the dlls to be able to call subroutines from other dlls. All the dlls are fortran and compiled with FTN95. For example, the following will work fine since both the subroutines are in the same file and compiled to the same dll:

Code:

F_stdcall SUBROUTINE SOLVE()
print * , 'Now in solve'
call result()
END Subroutine

Subroutine result()
print *, ' This is the result'
end subroutine

If I need to call result from another dll though:
Code:

F_stdcall SUBROUTINE SOLVE()
print * , 'Now in solve'
call result()
END Subroutine

F_stdcall Subroutine result
print *, ' This is the result'
end subroutine

- now two separate dlls

The program just hangs when it tries to call result. I imagine I need to write an interface between the two dlls but even if this is correct I don't know how to do it.

I would be grateful for any help on this as I really need it to work.

Thanks,

Tony
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