From Java can i pass a signal to C..
i need some suggestion.... could u please tell me how can i pass
a signal (for example, by the button click) from java to C . (C added
with java through JNI thread)..
Thanks in Advance,
Re: From Java can i pass a signal to C..
On 21 Dec 2006 04:14:36 -0800, firstname.lastname@example.org wrote:
> i need some suggestion.... could u please tell me how can i pass a
> signal (for example, by the button click) from java to C . (C added
> with java through JNI thread)..
Are you asking how to do "button clicks", or how to do JNI?
For the former, read about event handling in the Swing tutorial.
For the latter, realize that there is no functional difference between
pure Java methods and native methods. Wherever you can invoke a Java
method, you can invoke a native method instead.
Define a class that implements ActionListener. Call a C method from
the actionPerformed() method. Or declare a native actionPerformed()
and implement it in C.
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
|All times are GMT. The time now is 05:37 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.