comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL(rsi) + FORTRAN(digital) + DLL(windows nt)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL(rsi) + FORTRAN(digital) + DLL(windows nt) [message #15552 is a reply to message #15542] Fri, 21 May 1999 00:00 Go to previous messageGo to previous message
Michel Kruglanski[1] is currently offline  Michel Kruglanski[1]
Messages: 4
Registered: January 1999
Junior Member
Steve Lionel wrote:
>
> I see that your Fortran DLL code has a PRINT * statement in it. This
> assumes that a console is present for the PRINT. While you can call
> the Win32 API AllocConsole to create the console, you might consider
> using the Win32 API MessageBox to put up a "Hello" box.
>

Effectively, when I remove the print statement, IDL doesn't crash
anymore. So, the problem seems to be that the Windows version of
IDL has no console. Is there a solution without using Windows
specific statements in the Fortran code?
My point is: I have written several Fortran subroutines that I
distribute as object library on several plateforms (OpenVMS,
VAX/VMS, HP-UX, SunOS, DecOSF, Windows). Since most of the users
of this library are using IDL, I have decided to write an IDL
interface using the CALL_EXTERNAL function. Therefore I am
writing a Fortran subroutine dedicated to be the interface
between IDL and several subroutines of my library.
I succeeded already to apply this subroutine under OpenVMS
HP-UX ans SunOS without including plateform-specific codes
neither in the Fortran code nor in the IDL code (except the
name of the sharable object/executable, i.e. test.exe, test.sl,
test.so or test.dll, respectively)
Since some of the Fortran subroutines include WRITE(6,*) statement,
is it a way to force IDL to accept a console without modifying
the Fortran code (even through an option to DF)?

Michel K.
BIRA/IASB
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Hex constants interpreted differently in IDL/v5.2
Next Topic: Re: List yourself in SStreamsT

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Dec 04 10:01:51 PST 2025

Total time taken to generate the page: 0.01467 seconds