Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > From Java can i pass a signal to C..

Reply
Thread Tools

From Java can i pass a signal to C..

 
 
ganeshamutha@gmail.com
Guest
Posts: n/a
 
      12-21-2006
Hi all,

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,
Ganesh.

 
Reply With Quote
 
 
 
 
Gordon Beaton
Guest
Posts: n/a
 
      12-21-2006
On 21 Dec 2006 04:14:36 -0800, 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.

/gordon

--
[ 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Target of signal assignment is not a signal" Nicolas Moreau VHDL 9 07-25-2007 04:21 PM
Re: How to make an internal signal embedded deep in hierarchy to a gloal output signal Weng Tianxiang VHDL 2 01-30-2007 12:58 PM
Aside from delta cycles and/or resolution functions, how can the effective value of a signal differ from a driving signal of its? Colin Paul Gloster VHDL 0 01-11-2007 01:31 PM
threading.Thread vs. signal.signal Jack Orenstein Python 0 09-17-2005 11:24 PM
Async-signal safe functions in signal handlers (unix) Michael Pronath Python 1 01-03-2005 01:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57