I am using MSCOMMctrl for serial communication. I am able to get the event notification to the MainFrame.cpp using the EVENT SINK mechanism.
Now I want to get this to my communication thread. I have derived a CCommThread class for CWinThread.
I coded the event sink as follows .
BEGIN_EVENTSINK_MAP(CCommThread,CWinThread)
ON_EVENT(CCommThread, ID_COMMCTRL, 1 /* OnComm */, OnComEvent, VTS_NONE)
END_EVENTSINK_MAP()
The compilation is OK. But not getting the event notification to the thraed.
What I am doing wrong ?
Thanks for any suggestion / advice
Using VC++ 6.0