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

Home » Public Forums » archive » Re: Data passing & CALL_EXT
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: Data passing & CALL_EXT [message #8259 is a reply to message #8255] Fri, 21 February 1997 00:00 Go to previous message
Phil Williams is currently offline  Phil Williams
Messages: 78
Registered: April 1996
Member
mallozzi@ssl.msfc.nasa.gov wrote:
>
> Hi,
>
> Is it possible to pass the following data structures from C code back
> to IDL via CALL_EXTERNAL:
>
> 1. An array of strings?
> 2. A C structure, containing int, float, char
> 3. A C union
>
> I got my C code to pass back a single string, but could not do an
> array of strings. Really I would like to pass a structure back to
> IDL. Does anyone have any examples of this? The IDL examples treat
> only the simplest cases.
>
> -bob
>
> PS I am using OpenVMS :-(

The returned variable from a call_external can only be a single value.
If you want to pass more than one then you must first create the var in
IDL and pass it to call_external. Then in your C function you place
your answer into this var.

Hope this helps,
Phil
--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: A TRACKING_EVENT MYSTERY (was widget_event mystery)
Next Topic: Re: You ever wonder why....

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

Current Time: Sun Oct 12 01:29:13 PDT 2025

Total time taken to generate the page: 0.40058 seconds