Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How can RCP program receive a message from other process
How can RCP program receive a message from other process [message #523722] Mon, 29 March 2010 02:06 Go to next message
Duo  is currently offline Duo Friend
Messages: 2
Registered: March 2010
Junior Member
Hi,
I've written an RCP program. When it is running, I use FindWindow function to get the handle of the program in C++ code, and then I use PostMessage to post an user defined message to the handle, how can the RCP program receive it?

I try display.addListener(...), but it didn't work.

Thanks!

[Updated on: Mon, 29 March 2010 02:13]

Report message to a moderator

Re: How can RCP program receive a message from other process [message #523774 is a reply to message #523722] Mon, 29 March 2010 04:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kai.edinger.drexler-software.de

Am 29.03.2010 04:06, schrieb Duo:
> When an RCP program is running, I use FindWindow function to get the
> handle of the program in C++ code, and then I use PostMessage to post an
> user defined message to the handle, how can the RCP program receive it?
> I try display.addListener(...), but it didn't work.

As far as I know this is not posible because SWT is platoform
independent. Use a mittlware like CORBA, WebService, (XML-)RCP, etc.

Kai
Re: How can RCP program receive a message from other process [message #523782 is a reply to message #523774] Mon, 29 March 2010 09:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kai.edinger.drexler-software.de

Am 29.03.2010 11:44, schrieb Kai Edinger:
> Am 29.03.2010 04:06, schrieb Duo:
>> When an RCP program is running, I use FindWindow function to get the
>> handle of the program in C++ code, and then I use PostMessage to post an
>> user defined message to the handle, how can the RCP program receive it?
>> I try display.addListener(...), but it didn't work.
>
> As far as I know this is not posible because SWT is platoform
> independent. Use a mittlware like CORBA, WebService, (XML-)RCP, etc.
>
> Kai

Oh, something I have forgotten: If you only use Windows you can also use
OLE.
Re: How can RCP program receive a message from other process [message #523866 is a reply to message #523782] Mon, 29 March 2010 16:33 Go to previous messageGo to next message
Duo  is currently offline Duo Friend
Messages: 2
Registered: March 2010
Junior Member
Thanks! I use Windows. Now I find another way to do this: Instead of sending message to the main handle, I send a WM_SETTEXT message to an Edit Control of my RCP program, and I use text.addModifyListener to receive the message.
Re: How can RCP program receive a message from other process [message #524882 is a reply to message #523866] Sat, 03 April 2010 13:19 Go to previous message
Andre Kullmann is currently offline Andre KullmannFriend
Messages: 33
Registered: September 2009
Member
He,

to send messages between eclipse rcp applications and native applications, we use http requests. just use the jetty plugin and write an servlet to receive and process the request.

Greetings,
André

Previous Topic:update site finds new version but cannot update
Next Topic:Preview for Composite Objects
Goto Forum:
  


Current Time: Fri Apr 19 22:19:40 GMT 2024

Powered by FUDForum. Page generated in 0.03810 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top