Help on use Module and Interface in Fortran 95
From: D Marty (nath.domi_at_tele2.fr)
Date: 02/22/05
- Next message: Rich Townsend: "Re: Muller's method code ?"
- Previous message: Steven G. Kargl: "Re: Muller's method code ?"
- Next in thread: Richard E Maine: "Re: Help on use Module and Interface in Fortran 95"
- Reply: Richard E Maine: "Re: Help on use Module and Interface in Fortran 95"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Feb 2005 15:39:45 -0800
Hello,
I don't know very well Fortran 95, I would like to have some advise on
the following problem.
I build "file.dll" in view to call it with VBA (MS Excel), and I would
like to do the folowing code:
vba:
Declare Sub TITI Lib "file.dll" (ByRef N As Long, ByRef V As Double)
Sub TOTO()
Dim V() As Double, N As Long
call SUB1(N,V(1))
end
F77:
subroutine SUB1(N,V(N))
integer N
real V()
common N,V(N)
...
end subroutine
In fortran 77 this it is impossible because the array V() must have a
fixed size in the common block.
I don't know if it is possible with Frotran 95 using Module and
Interface to do this. If somebody know, I'am very interested learn how
to do.
I use Gfortran to obtain the "file.dll"
gfortran -o file.dll -s -shared -mrtd file.f95
Thank you very much.
Dominique Marty
- Next message: Rich Townsend: "Re: Muller's method code ?"
- Previous message: Steven G. Kargl: "Re: Muller's method code ?"
- Next in thread: Richard E Maine: "Re: Help on use Module and Interface in Fortran 95"
- Reply: Richard E Maine: "Re: Help on use Module and Interface in Fortran 95"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|