JNI & C & Events

G

ginjasvinja

Hi everyone! I wrote some java code using JNI and also dll for it in C.
Everything worked fine untill I got a job to generate some events. I
have to generate some event in C like "key down", then to call Java
function to react like print some text. I followed the Desktop
Indicator example but could not do anything usefull. I think I don't
understand that example as well. Does anyone have some similar example?
I'll be gratefull for any help or advice.
 
G

ginjasvinja

I am not sure that I illustrated my problem as well. I have to call
native method to register event. In C I have to create window that will
register my event. When created window notice the event I have to call
Java function which can be only one line, like:
System.out.println("Key down\n");
So the most of work I have to do in C. The Desktop Indicator example
does something like that but I think I need some simpler example.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top