Re: strange arguments passing problem (from vba to fortran dll)
- From: Arjen Markus <arjen.markus@xxxxxxxxxx>
- Date: 28 May 2007 23:50:14 -0700
On 29 mei, 00:01, formulae translator <liwei19742...@xxxxxxxxx> wrote:
Dear all,
I encounter a strange problem when I am trying to pass arguments from
VBA (excel 2003) to fortran dll (compiled using CVF 6.6b).
debug in cvf environment shows some of the arguments are passed
correctly while some are not.
I attached part of the code here. The arguments passed correctly are
f_max, ppw, ma, para_H2. For other array arguments, only the first
elements are passed correctly.
any comments or suggestions are appreciated.
It looks as if only the scalar variables are passed correctly.
That does seem to make sense to me:
In VB you need to pass arrays like: ByRef array() As Double
In the code you posted the interfaces are missing the ().
Regards,
Arjen
.
- Follow-Ups:
- Re: strange arguments passing problem (from vba to fortran dll)
- From: formulae translator
- Re: strange arguments passing problem (from vba to fortran dll)
- References:
- strange arguments passing problem (from vba to fortran dll)
- From: formulae translator
- strange arguments passing problem (from vba to fortran dll)
- Prev by Date: Re: user-defined alignment in gfortran
- Next by Date: Re: user-defined alignment in gfortran
- Previous by thread: strange arguments passing problem (from vba to fortran dll)
- Next by thread: Re: strange arguments passing problem (from vba to fortran dll)
- Index(es):
Relevant Pages
|