Java calling C/C++ and back (asynchronously)
843829Jun 2 2006 — edited Jun 3 2006Hi everybody!, i have the following issue.
I have an API in a dll wich allows you to register functions (in C) which will be called when some event occurs.
I have to register a Java function so i hava a native method from wich i can access this dll and register another C function into the API, which will call the desired Java method.
The problem is that i can get back to Java from within the native method, but i can't get to access from the C callback function which is called by the API asynchronously. What i'm doing is trying to instanciate another JVM from the C callback function, but i can't.
Is this the right way to go? Should i try something different?
Thanks!