Re: PASSING ARRAY FORTRAN DLL TO/FROM VBA EXCEL
- From: kis <kisitanggang@xxxxxxxxx>
- Date: Mon, 22 Sep 2008 06:43:36 -0700 (PDT)
Can you pls give me an example code that does this?
FYI, I use CVF 6.6
Thanks,
Irfan
On 19 Sep, 11:49, e p chandler <e...@xxxxxxxx> wrote:
On Sep 19, 11:28 am, kis <kisitangg...@xxxxxxxxx> wrote:
Hello Experts,
It might not be appropriate to address this question here.
I tried to create Fotran dll file and asked VBA to call it. A very
simple example:
Let's say we have a Fortran subroutine that multiplies all elements of
an array by 10.
Then, VBA Excel has an array as input and calls this (dll) fortran
subroutine and will get the array multiplied by 10.
I always fail to do so with array as input, however find no problem
with single-valued variable.
Look forwards to hearing from you.
Thanks,
Irfan
Try passing the first element of the array as your actual argument:
call FOO(x(1)), etc.
In addition many other things depend on which compiler you are using.
DVF, CVF and IVF have good documentation concerning mixed language
programming.
- e
.
- Follow-Ups:
- References:
- PASSING ARRAY FORTRAN DLL TO/FROM VBA EXCEL
- From: kis
- Re: PASSING ARRAY FORTRAN DLL TO/FROM VBA EXCEL
- From: e p chandler
- PASSING ARRAY FORTRAN DLL TO/FROM VBA EXCEL
- Prev by Date: Re: Scope of implicit none
- Next by Date: Re: PASSING ARRAY FORTRAN DLL TO/FROM VBA EXCEL
- Previous by thread: Re: PASSING ARRAY FORTRAN DLL TO/FROM VBA EXCEL
- Next by thread: Re: PASSING ARRAY FORTRAN DLL TO/FROM VBA EXCEL
- Index(es):
Relevant Pages
|
|