How CWinThread derived class can get messages ?
Posted on 2002-03-22
I've created a class 'CSecondClass' that is derived by 'CFirstClass', which is derived by CWinThread.
I want that CSecondClass will get a custom messages
I've tried to do it by a message map :
#define TM_MYTHREAD_MESSAGE WM_USER+19
The problem is that the compiler writes :
'type cast' : cannot convert from 'long (__thiscall CSecondClass::*)(unsigned int,long)' to
'void (__thiscall CWinThread::*)(unsigned int,long)'
Please tell me, how to use the message map, that my class will can get the wanted message without getting any error about converting (CSecondClass::*)(unsigned int,long) to (CWinThread::*)(unsigned int,long)'.