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

Home » Public Forums » archive » IDL call C/C++
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
IDL call C/C++ [message #68521] Wed, 04 November 2009 23:36 Go to next message
dandan is currently offline  dandan
Messages: 3
Registered: November 2009
Junior Member
Hi, everybody
nowadays I am trying to call the C function written by my friends
from IDL, unfortunately I encounter a thorny problem. I do not know
how to call a C function, which include a function pointer parameter.
Just like this:

result=myfunc(int a, int b,(*fun)(double *))

Does anybody have any idea about this issue? Thanks a lot!
Re: IDL call C/C++ [message #68666 is a reply to message #68521] Thu, 05 November 2009 08:50 Go to previous message
rtk is currently offline  rtk
Messages: 22
Registered: September 2008
Junior Member
On Nov 5, 12:36 am, dandan <txwang...@gmail.com> wrote:
> Hi, everybody
> nowadays I am trying to call the C function written by my friends
> from IDL, unfortunately I encounter a thorny problem. I do not know
> how to call a C function, which include a function pointer parameter.
> Just like this:
>
> result=myfunc(int a, int b,(*fun)(double *))
>
> Does anybody have any idea about this issue? Thanks a lot!

Look at the documentation for writing DLMs. You need to write a DLM
that implements the C function, you cannot pass an IDL function in its
place.

Ron
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Plot single data points in IMAP
Next Topic: Intensity Plot

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

Current Time: Wed Oct 08 13:37:18 PDT 2025

Total time taken to generate the page: 0.00430 seconds