Home »
Public Forums »
archive »
calling fortran subroutines in .dll from IDL
calling fortran subroutines in .dll from IDL [message #6752] |
Fri, 16 August 1996 00:00 |
vtr
Messages: 1 Registered: August 1996
|
Junior Member |
|
|
Hi,
I have problem with calling compiled FORTRAN subroutines to .dll
in IDL 4.01 (under Windows NT/95). These subroutines are called
using IDL routine CALL_EXTERNAL. For creation .dll library
I have used compiler MS-Fortran PowerStation 1.0 for NT and also newer
version 4.0 for NT/95. These compilers have possibilities to generate
.dll with various calling conventions (fortran,C,STDCALL...) and also
possibility to specify explicitly passing of parameters (value, reference).
Although this way generated subroutine in my .dll is possible to call
in IDL, parameters are passed always incorrectly. IDL also after calling
CALL_EXTERNALL often crashes (Dr. Watson is called). I have tried all
possible calling conventions and types of passing parameters but without
positive results. My .dll is possible to use by other compilers.
I would be very grateful for your advice (small example I would welcomed).
Thank you.
Best regards
Vladimir Truhlik
Institute of Atmospheric Physics
Bocni II.
141 31 Prague - 4, Sporilov
Czech Republic
tel.: (02) 67103058
E-mail: vtr@ufa.cas.cz
|
|
|
Current Time: Fri Oct 10 03:09:42 PDT 2025
Total time taken to generate the page: 0.72282 seconds