Application Communication

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 2 programs running on ppc. One is the main program, another fires when activesync connection is made. I want the activesync program to notify the other application that there was a connection. Is there a way to have two applications communicate? Right now I create a temp file and poll, but Im having problems because I think the main application (which has a timer) gets interrupted when the other program fires and Im getting exceptions. Any help
 
You can use a MessageWindow class in your main program and send message to
it. The only issue you will need to decide is how to let the sender know of
the current MessageWindow's Hwnd. You can use either registry for that or
some text file...

--
Alex Yakhnin .NET CF MVP
www.intelliprog.com | www.opennetcf.org

bdoyle said:
I have 2 programs running on ppc. One is the main program, another fires
when activesync connection is made. I want the activesync program to notify
the other application that there was a connection. Is there a way to have
two applications communicate? Right now I create a temp file and poll, but
Im having problems because I think the main application (which has a timer)
gets interrupted when the other program fires and Im getting exceptions.
Any help
 
Actually, there's another option for passing a Hwnd - to use HWND_BROADCAST
with PostMessage...
 
Hi bdoyle,

for interprocess communication i have two interesting places to look:
http://msdn.microsoft.com/library/e...commWindowsCENETInterprocessCommunication.asp

or book 'Programming Microsoft Windows Ce.Net' Chapter 10 Syncronization s.
511 ff
This chapter describes the use of Events, Semaphores, Mutexes, Critical
Sections, etc. and inlcludes a small application example.

Best regards,
Oliver Münchow
--
---------------------------------------
Gesytec GmbH eMail:
52076 Aachen omuenchowATgesytecDOTde
http://www.gesytec.de
 
Back
Top