Passing a string using SendMessage
Posted on 2001-06-12
I want to send a String from one Application to another. I'm using SendMessage to do this and am passing the string in the wParam. But for some reason, I'm not able to "get" that string in the receiving application. Any clues guys ?
I have registered a window message say APP_MY_MSG. Then I'm doing a
CString csUser = "User1";
lRet = ::SendMessage((HWND)-1, APP_MY_MSG, (WPARAM)csUserID, APP_ISUSERVALID);
In my other Application, I get the message fine and can even switch with the lParam (as APP_ISUSERVALID), but I'm not able to get the value that I pass from here. Cd u tell me whatzz wrong