Home »
Public Forums »
archive »
Re: Using CALL_EXTERNAL with a pointer to a pointer
Re: Using CALL_EXTERNAL with a pointer to a pointer [message #19716] |
Tue, 11 April 2000 00:00 |
Mark Rivers
Messages: 49 Registered: February 2000
|
Member |
|
|
Harvey Rarback wrote in message
<38F39CFF.FD15A82E@ssrl.slac.stanford.edu>...
> Folks,
Hi Harvey,
> I would like to interface IDL to an existing C function in an existing VMS
> shareable image. The C prototype looks like
>
> int ext_camac_canaf (camcab16r **resultp)
>
> where camcab16r is a structure whose definition I know. Is it possible to
use
> the CALL_EXTERNAL interface to access the structure members? Do I have to
write
> a wrapper routine in C? Use LINK_IMAGE?
I think you need to write a wrapper routine in C. Although VMS does not
have to use the (argc, argv) mechanism as other OS versions of IDL do, I
don't know of a way to get IDL to pass a pointer
to a pointer.
The only thing you have to worry about is whether IDL uses the same padding
in the structure as the shareable image does.
Mark Rivers
argument passing mechanism to the one which the shareable image uses.
|
|
|
Current Time: Wed Oct 08 14:32:37 PDT 2025
Total time taken to generate the page: 0.00622 seconds