Here requirement is restrict to SendMessage() API. Anyway thanks for your answer. Can you send any sample code for Named Pipes implementation?
Anasuya2015
Posts
-
How to communicate between two different app using SendMessage API? -
How to communicate between two different app using SendMessage API?I am just finding the way to print the message. So you mean to say it is not needed and directly we can use lparam to print the message?
-
How to communicate between two different app using SendMessage API?Thanks for your help. I am facing issue in extracting the message. Code is as follows... APP1:
int WM_MYMSG = RegisterWindowMessage (L"MYMESSAGE");
HWND hw = FindWindow(NULL, L"Demo");
LPCTSTR strMsg = L"ClientDemo1";
//Send that message
::SendMessage(hw, WM_MYMSG, NULL, (LPARAM(LPCTSTR)strMsg);APP2:
LRESULT CDemoDlg::OnMyMsg(WPARAM w, LPARAM l) {
MSG\* p = (MSG\*)l; LPCTSTR str = (LPCTSTR)p->message; MessageBox(str);// No message. But getting the alert while sending message. Need to extract the actual msg here. return (LRESULT) 0;
}
Please let me know what changes is needed here by which it'll display "ClientDemo1" in msgbox.
-
How to communicate between two different app using SendMessage API?How to communicate between two different app using Send Message API? Ex: APP1 having textbox txtBox1 APP2 having textbox txtBox2 In txtbox1 whats ever we type, that needs to be displayed in textbox2. How to achieve it using SendMessage() API. Ex code in VC++ is appreciated.