IDL call C/C++ [message #68521] |
Wed, 04 November 2009 23:36  |
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  |
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
|
|
|