logo       

Re: RE:: msg#00020

programming.swig

Subject: Re: RE:

On Thursday 06 May 2004 03:17, Devender Marri wrote:
> Hi all,
>
> How to pass a java function as a pointer to a c or c++ function.???

The short answer is, no. The two ideas are semantically (if not just purely
functionally) disjoint.

You might want to read up on Java JNI. Then it'll be clear to you why this
isn't strictly possible.

You might be able to create an object wrapping template that does what you
want, but if you do this, you're not strictly passing a c/c++ pointer to a
function as a parameter any more. But it might satisfy your "requirement" to
upcall a Java method indirectly by passing a pointer to something as a method
argument.

_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise