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

Home » Public Forums » archive » CALL_EXTERNAL
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: call_external [message #12440 is a reply to message #1268] Wed, 05 August 1998 00:00 Go to previous messageGo to previous message
Vap User is currently offline  Vap User
Messages: 31
Registered: April 1998
Member
Chris Varekamp <chris.varekamp@users.whh.wau.nl> writes:

The entry point is the name of the C function in the source file.

The function ...

float foo ( int argc, char *argv[] ) {
/* your code here */
return (result);
}

within the file 'foo.c' would be called in the following manner using
call_external.

result = call_external( 'c:\path\to\shareable\library\foo.ddl','foo',arg1,...)


I may have made a mistake about the naming convention of the 'image'
(i.e. the library/ddl file) since I work with Unices and don't really
know the nomenclature for NT boxes, but I think a DDL is the
equivalent of a Unix shareable library on a windoze machine.

In any case, the 'entry' is just the name of the C function. It's
called an entry point because you can have more than one function in
the same shareable image, hence the loader must know at which point to
'enter' the file.

>
> Hello,
>
> Does anyone have experience running a C program using the CALL_EXTERNAL
> function in IDL on an NT machine? Are there examples around ?
>
> I have a small program from numerical recipes that returns a float.
> However, the CALL_EXTERNAL function requires you to specify an entry
> point (don't know what is meant by this).
>
> Hope someone can give me a hint...
>
> Chris Varekamp
> Dept. Water Resources
> Wageningen University
> The Netherlands

--
I don't speak for JPL, it doesn't speak for me.
Well, not all the time, at least.
William Daffer <vapuser@haifung.jpl.nasa.gov>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: problems accessing Ken Bowman's IDL page?
Next Topic: Re: From tvscale to cgImage, puzzling feature in the plot

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

Current Time: Wed Oct 08 12:29:11 PDT 2025

Total time taken to generate the page: 0.00427 seconds