logo       

Calling DLL with array arguments?: msg#00019

windows.devel.jawin

Subject: Calling DLL with array arguments?

I've just started looking in to using Jawin, and the demos work well.

But I've run into a problem because the custom Fortran code I need to
call has arguments that are arrays of floats.

FuncPtr.invoke(...) only supports passing various combinations of int
and String arguments.

Is there a way to call the following Fortran code which has two arrays
of floats, using Jawin?

Any pointers in the right direction would be greatly appreciated!

Example Fortran code:
------------------------
*$pragma aux calcul export
*$pragma aux C1200703 "calcul"
SUBROUTINE C1200703(Tabin,Tabout)
C
IMPLICIT NONE
C Arguments de la subroutine
REAL Tabin(100),Tabout(100)

Tabout(1)=Tabin(1) * 2
Tabout(2)=Tabin(2) * 2

RETURN
END

--
Frank Harper, TURBOMECA DSI/SIP
e-mail: Franklin.Harper@xxxxxxxxxxxx
Tel: +33-559-12-50-00 poste 6620
Fax: +33-559-12-59-71



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise