Home »
Public Forums »
archive »
Re: hooking external 'C' functions to IDL
Re: hooking external 'C' functions to IDL [message #5912] |
Wed, 13 March 1996 00:00  |
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)
|
|
|
Current Time: Sat Oct 11 05:18:32 PDT 2025
Total time taken to generate the page: 1.28279 seconds