I am trying to build a bridge between two API:
- one communicates through sendMessages
- the other one is accessible through an activeX
This is what I do: @ HRESULT hr = pMJ.GetActiveObject(L"MediaJukebox Application");
pPlayback = pMJ->GetPlayback();
The Play() call works perfectly.
Then I connect a pushButton to a slot that will also call pPlayback->Play(), it works.
Finally I reimplement winEvent(...) to receive message from the other program. @bool Bridge::winEvent(MSG *message, long *result)
if( message->message == WM_USER )
*result = 0; // keep the event from qt return true; } // give the event to qt return false;
}@ Here for some reason, the Play() call never returns. I'm stuck indefinitely in it!
In the meantime I can click my pushButton, and this one will work. But within winEven(...) it doesn't.
What is the issue there? Am I triggering an infinite recursion?