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

Home » Public Forums » archive » passing structures to CALL_EXTERNAL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
passing structures to CALL_EXTERNAL [message #17262] Fri, 17 September 1999 00:00
jvkepner is currently offline  jvkepner
Messages: 10
Registered: November 1995
Junior Member
I would like to pass an IDL structure to a function written
in C via CALL_EXTERNAL. Does anybody know how to do this.
Thanks.
-Jeremy Kepner
Princeton University
Re: passing structures to CALL_EXTERNAL [message #17264 is a reply to message #17262] Thu, 16 September 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Jeremy Kepner (jvkepner@muse.Princeton.EDU) writes:

> I would like to pass an IDL structure to a function written
> in C via CALL_EXTERNAL. Does anybody know how to do this.

I like to think of CALL_EXTERNAL as LINKIMAGE-LITE. It is
a greatly simplified interface to something that can be
quite a complex operation. As a simplified interface, there
are some things you can't do that you can do in, for example,
LINKIMAGE. One of these things is you can't pass structures
using CALL_EXTERNAL.

Now, having said that, I know of people who HAVE passed
structures using CALL_EXTERNAL. But these people knew
*exactly* what they were doing. But for most of us, if
we knew exactly what we were doing, we would know enough
to be using LINKIMAGE in the first place.

Cheers,

David

P.S. I've known plenty of people who weren't too proud
to deconstruct their structure on one side and reconstruct
it on the other, but we all do what we have to do. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: need help on ROI subscript
Next Topic: ODEPACK

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

Current Time: Fri Oct 10 21:57:08 PDT 2025

Total time taken to generate the page: 0.32291 seconds