Why does Windows SendMessage () always return ZERO, even message delivery is successful? Is there a way to check for message delivery failure using SendMessage ()?
EDIT
Forgot to mention that I use SendMessage () inside the C ++ DLL
LRESULT result = ::SendMessage(hwndOtherWindow,WM_COPYDATA, NULL,(LPARAM)&structCDS);
"result" is always zero :(, but the message delivers to another window successfully
EDIT
BOOL CDlg::OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct)
{
return true;
}
source
share