Re: Communicating with a Windows mfc application
- From: "Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 13:24:05 +0100
matteo.dt@xxxxxxxxx wrote:
i have a swing java program with a Timer thread. In this thread I need
to set tasks and to retrieve parameters to a Windows mfc application
every time the Timer activates. I could implement a jni dll that
manages the communication with the Win application. For now i've tried
with RegisterWindowMessage, SendMessage and GetMessage sdk functions
but, as these are based on windows handlers, nothing works.
I'm not a specialist Windows programmer, but I think that you'd have to start a
separate thread (Windows not Java) with its own Windows event dispatch loop.
Your JNI code would start that thread. Later calls (via) JNI would communicate
with that thread to ask it to use the window/thread related Windows APIs.
-- chris
.
- References:
- Communicating with a Windows mfc application
- From: matteo . dt
- Communicating with a Windows mfc application
- Prev by Date: Why is JAR so slow?
- Next by Date: Re: Reading HDD serialNo
- Previous by thread: Communicating with a Windows mfc application
- Next by thread: Re: Communicating with a Windows mfc application
- Index(es):
Relevant Pages
|
|