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

Home » Public Forums » archive » Some MAKE_DLL questions
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: Some MAKE_DLL questions [message #92143 is a reply to message #92142] Mon, 19 October 2015 18:40 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Monday, October 19, 2015 at 11:36:39 AM UTC-6, nata wrote:
> Thank you Michael for your reply!
>
> About my third question; I just want to know if the variables are copied (duplicated) when they are passed to the C code.
> Thank you,
> Nata

By default, scalar arguments are passed by reference. There's a VALUE keyword to CALL_EXTERNAL to control this. Arrays are always passed by reference.

Strings in particular are a special case. You'll want to understand the differences. (It's generally easier to convert them to byte arrays instead and cast the pointers to char * on the C side.)

As the online help says, "See Chapter 3, "Using CALL_EXTERNAL" (External Development Guide in the help/pdf directory of your IDL installation).

Jim P
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Read ENVI file
Next Topic: "% Unable to allocate memory" when using histogram.

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

Current Time: Wed Oct 08 20:05:13 PDT 2025

Total time taken to generate the page: 0.02379 seconds