Sorry for my - i guess - odd title. My issue is not easy to define.
I am developping an Max5 external in WinXP, VC++.
The goal of the object is to be an interface between Max and a multitouch surface Lumio.
Dialog between client object and surface server is based on Windows framework : RegisterWindowMessage() and PostMessage() mainly, from Winuser.h
Nothing magic till there.
My object first asks for server :
void *lumio_new(long num)
lumioObject = (t_lumio *)newobject(lumio_class);
lumioObject->uiGlobal_MsgID_LumioDiscover = RegisterWindowMessage((LPCTSTR)"LumioCTAPIDiscover");
lumioObject->uiGlobal_MsgID_LumioAttach = RegisterWindowMessage((LPCTSTR)"LumioCTAPIAttach");
void lumio_connect(t_lumio *x)
//first time connection
WPARAM m_hWnd = 0;//id du serveur en get
PostMessage( HWND_BROADCAST, x->uiGlobal_MsgID_LumioDiscover, (WPARAM)m_hWnd, 0);
/*The message is posted to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows. The message is not posted to child windows.*/
Till here ok. But now, I need a callback to catch server answer of course. What is proposed is to overwrite CWnd::onWndMsg(...) , what expects to make some C++ I guess : =
CWnd::OnWndMsg(_THE CATCHED ANSWER_)
At this point, I'm totally lost.
Is any generous soul can help me ?
Is coding my external in C# not a better idea ?