• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI Global reference

 
Joe Schaffer
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

A question regarding an global jobject. I have a java function calling the startup function in my JNI dll. I want to call now a function on the java side. How can I get the jobject value? I need it for the function call. (The questionmarks in the Output function ) Can I get it somehow from the global jclass? It doesn't work if I generate a global "jobject g_obj;" and set "g_obj = obj;" in the startup jni function and use this value. I have to call the class even if the startup function is returned from a thread, running in a further MFC dll.

Thanks for your help

Joe


This is my code:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!