1

I made Java project using JNI(Java Native Interface).

Java load a DLL file.

the DLL fires Events.

How to handle DLL events in Java program?

When the DLL event is fired, I want to call specific method.

Hyunjin Lee
  • 113
  • 1
  • 17
  • 1
    Have you tried anything? Do you have code to share from your DLL event logic and your corresponding Java classes? – Samhain Oct 27 '14 at 12:36

1 Answers1

1

You can register a callback for your native code which corresponds to a method within a class instance or a static method on the Java side.

See this example for C++

Community
  • 1
  • 1
aMpeX
  • 57
  • 7