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

Home » Public Forums » archive » Re: hooking external 'C' functions to IDL
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: hooking external 'C' functions to IDL [message #5912] Wed, 13 March 1996 00:00 Go to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <4i6u40$ivf@peabody.colorado.edu>, sena@spot.Colorado.EDU (Michelle Sena) writes:
> I am currently working on a program that uses an IDL gui interface to access
> an external database (Sybase) that contains various data needed for analysis
> and display. I need to go through 'C' to access the database. I would be
> getting back an array or arrays of data. From what I've seen, CALL_EXTERNAL
> can only return discrete data values. Do I need to use the LINKIMAGE routine
> to get back arrays of data? Or am I missing an option for the CALL_EXTERNAL
> procedure that would allow me to do this?

There is no restriction on CALL_EXTERNAL returning arrays in its function
arguments. I think it can probably only return a scalar as the function value.
IDL essentially passes a pointer to your C routine. You need to make sure that
IDL and C agree on what it is pointing to in terms of data type and number of
elements.

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Lift the "ban" :-)
Next Topic: Re: HSB to RGB?

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

Current Time: Sat Oct 11 05:18:32 PDT 2025

Total time taken to generate the page: 1.28279 seconds