How to realize the IPC in Photon programme?

Hello to all:

I want to use Photon to write a programme to communicate with another
programme.

for example:

I want to get the contents of the Pttext widget of the programme(just called
the first programme), and send them (use the MsgSend()function)to another
programme’s (the second programme)Ptlabel widget (use the
MsgReceive()function)and displayed them in the Ptlabel. When the second
programme get the message sent from the first programme, it send the first
programme a reply using the MsgReply() function and disply the reply in the
first programme’s Pttext widget. That’s all.

But I try it for many many times and in the end there is no result.

I want you help very much. Please help me OK? Thanks!!!


By the way ,I want to ask where can I find any examples on this kind of
question?

Server:
Take a look in function PhChannelAttach. There is an example for
receiving!

Client:
Just find the name name_open and make an MsgSend.


Does it help?

\

Mit freundlichem Gruß
Sascha Morgenstern

BitCtrl Systems GmbH
Weißenfelser Straße 67
Germany - 04229 Leipzig
Phon. +49 341 490 670
FAX. +49 341 490 67 15
eMail: info@bitctrl.de
WWW: http://www.bitctrl.de




“duanchangpu” <changpu@hotmail.com> schrieb im Newsbeitrag
news:c5lf5c$lp7$1@inn.qnx.com

Hello to all:

I want to use Photon to write a programme to communicate with another
programme.

for example:

I want to get the contents of the Pttext widget of the programme(just
called
the first programme), and send them (use the MsgSend()function)to another
programme’s (the second programme)Ptlabel widget (use the
MsgReceive()function)and displayed them in the Ptlabel. When the second
programme get the message sent from the first programme, it send the first
programme a reply using the MsgReply() function and disply the reply in
the
first programme’s Pttext widget. That’s all.

But I try it for many many times and in the end there is no result.

I want you help very much. Please help me OK? Thanks!!!


By the way ,I want to ask where can I find any examples on this kind of
question?

duanchangpu <changpu@hotmail.com> wrote:

But I try it for many many times and in the end there is no result.

I want you help very much. Please help me OK? Thanks!!!



By the way ,I want to ask where can I find any examples on this kind of
question?

There’s a chapter on IPC in the Photon Programmer’s Guide.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems