title: MSMQ, handling WM_COPYDATA in c++
body: <p>I have two C++ console applications, and I want to implement inter-process communication so I can marshal custom message from app1 to app2.</p>
  
  <p>using spy++, I am sure my sender application is doing fine, but somehow I can't manage to handle the message in the receiving app. According to the documents I am supposed to overload the messaging APIs in my receiver app but i can't. What am I supposed to do?</p>
  
  <p>Can anyone help me with this issue please?
  My sender app code is:</p>
  
  <pre><code>HWND HWnd = FindWindow(null,"Reciever")
  LPTSTR lpszString =L"test";
  COPYDATASTRUCT cdss;
  cdss.dwData = 1; 
  cdss.cbData = sizeof(TCHAR)* (_tcslen(lpszString) + 1);
  cdss.lpData = lpszString;
  SendMessage(HWnd, WM_COPYDATA, (WPARAM)HWnd, (LPARAM)(LPVOID)&amp;cdss);
  </code></pre>