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 

passing VB-6 dll's to FTN77 and back??

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



Joined: 20 Feb 2007
Posts: 10

PostPosted: Mon Mar 05, 2007 1:39 pm    Post subject: passing VB-6 dll's to FTN77 and back?? Reply with quote

I have a program on fortran 77 and like to make a GUI on VB-6
How can I pass a dll to FTN77 without any problem
or how must I use the stdcall option for correct calling convention on FTN77


Last edited by john62 on Mon Mar 05, 2007 6:15 pm; edited 3 times in total
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Mar 05, 2007 3:14 pm    Post subject: Reply with quote

There is no simple way to call an FTN77 dll from Visual Basic.

You can use FTN95 to compile a Fortran 77 program and then you will find details on how to call an FTN95 dll from Visual Basic in the FTN95 help file under Win32 platform->Mixed language programming->Calling FTN95 dlls from Visual Basic.

Initially you should avoid providing your own LIBMAIN because the linking is not straight forward.
Back to top
View user's profile Send private message AIM Address
john62



Joined: 20 Feb 2007
Posts: 10

PostPosted: Mon Mar 05, 2007 6:13 pm    Post subject: Reply with quote

Thanks paul.
Sorry to heard that this impassible to call a FTN77 dll direct from VB-6
I have a large program on fortran77 and now i most converted to FTN95 by hand a lot of work.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Mar 05, 2007 7:15 pm    Post subject: Reply with quote

A program the compiles with FTN77 will normally compile with FTN95.
No conversion is required.

It is not impossible to access an FTN77 dll from Visual Basic but the linking process is quite complex. My recommendation is that you try compiling your program with FTN95 without any changes to the code.

After that you can see what changes are needed to use F_STDCALL.
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