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

Home » Public Forums » archive » CALL_EXTERNAL/shared libraries on HP
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: CALL_EXTERNAL [message #1267 is a reply to message #1198] Wed, 18 August 1993 16:31 Go to previous message
jim is currently offline  jim
Messages: 7
Registered: August 1993
Junior Member
In article <Aug18.163808.52294@yuma.ACNS.ColoState.EDU> dean%phobos.dnet@sirius.cira.colostate.edu writes:
>
> I am using CALL_EXTERNAL to call a C routine to open a certain file with
> a special image format. However, the C routine is not getting the right
> file name which is a character string. A FORTRAN routine gets the right
> character string from CALL_EXTERNAL, but the C routine doesn't. Can someone
> provide me with some hints on how to get IDL to pass the right character
> string to my C routine through CALL_EXTERNAL?
>
You neglected to say what kind of system you are running on. However,
problems passing strings between C and Fortran programs are common in
many environments. Try forcing the string to contain a null (all bits zero)
as the last character, and be sure the C routine references the string
properly. You may be getting the address of the string when you need the
address of the address, or some such, depending on machine and OS.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: TEX
Next Topic: bug in tvtwm (X11R5 version)

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

Current Time: Fri Oct 10 23:01:30 PDT 2025

Total time taken to generate the page: 1.59981 seconds