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 #15519 is a reply to message #15512] Mon, 24 May 1999 00:00 Go to previous messageGo to previous message
L. Paul Mix is currently offline  L. Paul Mix
Messages: 8
Registered: July 1996
Junior Member
> On Fri, 21 May 1999 10:14:09 +0200, Michel Kruglanski
> <michel.kruglanski@bira-iasb.oma.be> wrote:
>
>> 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,j
>> 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)?
>

My experience with IDL's call_external is that it is always dangerous to
try to access stdin or stdout, but file access seems ok.

One solution is to call a wrapper routine which opens a scratch file to
which the subroutines write.
When the work is finished, the wrapper routine rewinds the scratch file,
reads each line and uses the IDL routine: IDL_Message to put the
information on the current IDL console.

This technique seems to work for Windows, MAC, and UNIX (SUN, HP, DEC,
SGI) for both idl and idlde.
You will need to append a char(0) after the last non-blank character to
convert the Fortran string to a C string.

L. Paul Mix
Distinguished Member of the Technical Staff
Electromagnetics and Plasma Physics Analysis

Sandia National Laboratories
MS 1186, P.O. Box 5800
Albuquerque, NM 87185-1186
E-mail: lpmix@sandia.gov
Phone: (505) 845-7493
FAX: (505) 845-7890
[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: Wed Dec 03 01:23:43 PST 2025

Total time taken to generate the page: 0.00222 seconds