passing structures to CALL_EXTERNAL [message #17262] |
Fri, 17 September 1999 00:00 |
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  |
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
|
|
|