![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have an Application running on Windows Mobile 5.0 device. I want to pass some commands from one application on this device to another application on the device. I learned about Windows messaging, and know i can make an unmanaged call to postmessage or sendmessage. [DllImport("coredll.dll")] public extern static int SendMessage(IntPtr hwnd, uint msg, uint wParam, uint lParam); [DllImport("coredll.dll")] public extern static int PostMessage(IntPtr hwnd, uint msg, uint wParam, uint lParam); I want to know how do i read a user message posted to one of the forms in my application. Please suggest me if there is any other better way of communicating from one application to another application. Thanks in Advance, Murthy |
#3
| |||
| |||
|
|
The definitive list of Inter-process communication methods is in this two-part article:- http://www.danielmoth.com/Blog/2004/...ce-part-1.html http://www.danielmoth.com/Blog/2004/...ce-part-2.html Peter -- Peter Foot Device Application Development MVP www.peterfoot.net | www.inthehand.com "Murthy" <Murthy (AT) discussions (DOT) microsoft.com> wrote in message news:CD0ECE52-4ED9-43AB-95E2-633DE9B468D4 (AT) microsoft (DOT) com... Hi, I have an Application running on Windows Mobile 5.0 device. I want to pass some commands from one application on this device to another application on the device. I learned about Windows messaging, and know i can make an unmanaged call to postmessage or sendmessage. [DllImport("coredll.dll")] public extern static int SendMessage(IntPtr hwnd, uint msg, uint wParam, uint lParam); [DllImport("coredll.dll")] public extern static int PostMessage(IntPtr hwnd, uint msg, uint wParam, uint lParam); I want to know how do i read a user message posted to one of the forms in my application. Please suggest me if there is any other better way of communicating from one application to another application. Thanks in Advance, Murthy |
#4
| |||
| |||
|
|
Hi, Thanks for ur prompt Respose. i came across some sample code but they are not working for windows mobile 5.0 It is giving me the following error. Error 1 The type or namespace name 'Message' could not be found (are you missing a using directive or an assembly reference?) i am able to post message from form1 of App1 to form2 of App2, but i am do know how to read the posted message in C#. Any sample code is very much appreciated. Thanks in Advance, Murthy "Peter Foot [MVP]" wrote: The definitive list of Inter-process communication methods is in this two-part article:- http://www.danielmoth.com/Blog/2004/...ce-part-1.html http://www.danielmoth.com/Blog/2004/...ce-part-2.html Peter -- Peter Foot Device Application Development MVP www.peterfoot.net | www.inthehand.com "Murthy" <Murthy (AT) discussions (DOT) microsoft.com> wrote in message news:CD0ECE52-4ED9-43AB-95E2-633DE9B468D4 (AT) microsoft (DOT) com... Hi, I have an Application running on Windows Mobile 5.0 device. I want to pass some commands from one application on this device to another application on the device. I learned about Windows messaging, and know i can make an unmanaged call to postmessage or sendmessage. [DllImport("coredll.dll")] public extern static int SendMessage(IntPtr hwnd, uint msg, uint wParam, uint lParam); [DllImport("coredll.dll")] public extern static int PostMessage(IntPtr hwnd, uint msg, uint wParam, uint lParam); I want to know how do i read a user message posted to one of the forms in my application. Please suggest me if there is any other better way of communicating from one application to another application. Thanks in Advance, Murthy |
#5
| ||||
| ||||
|
|
i came across some sample code but they are not working for windows mobile 5.0 So you came across some sample code that is not working, you don't tell us |
|
Error 1 The type or namespace name 'Message' could not be found (are you missing a using directive or an assembly reference?) That means that you are either missing a reference to an assembly (that has |
|
i am able to post message from form1 of App1 to form2 of App2, but i am do know how to read the posted message in C#. At a guess you are trying to send windows messages between two windows forms |
|
Hi, Thanks for ur prompt Respose. i came across some sample code but they are not working for windows mobile 5.0 It is giving me the following error. Error 1 The type or namespace name 'Message' could not be found (are you missing a using directive or an assembly reference?) i am able to post message from form1 of App1 to form2 of App2, but i am do know how to read the posted message in C#. Any sample code is very much appreciated. Thanks in Advance, Murthy "Peter Foot [MVP]" wrote: The definitive list of Inter-process communication methods is in this two-part article:- http://www.danielmoth.com/Blog/2004/...ce-part-1.html http://www.danielmoth.com/Blog/2004/...ce-part-2.html Peter -- Peter Foot Device Application Development MVP www.peterfoot.net | www.inthehand.com "Murthy" <Murthy (AT) discussions (DOT) microsoft.com> wrote in message news:CD0ECE52-4ED9-43AB-95E2-633DE9B468D4 (AT) microsoft (DOT) com... Hi, I have an Application running on Windows Mobile 5.0 device. I want to pass some commands from one application on this device to another application on the device. I learned about Windows messaging, and know i can make an unmanaged call to postmessage or sendmessage. [DllImport("coredll.dll")] public extern static int SendMessage(IntPtr hwnd, uint msg, uint wParam, uint lParam); [DllImport("coredll.dll")] public extern static int PostMessage(IntPtr hwnd, uint msg, uint wParam, uint lParam); I want to know how do i read a user message posted to one of the forms in my application. Please suggest me if there is any other better way of communicating from one application to another application. Thanks in Advance, Murthy |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |