I am getting error with below code while compiling with VS2005:
Error is as below:Code:BEGIN_MESSAGE_MAP(CTreeDataCtrl<CLogicTreeData>, CTreeCtrl) //{{AFX_MSG_MAP(CTreeDataCtrl) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP()
error C2906: 'const AFX_MSGMAP *CTreeDataCtrl<T>::GetThisMessageMap(void)' : explicit specialization requires 'template <>'
I tried doing as below, but the error was not resolved:
Note that the definition as in code isCode:BEGIN_MESSAGE_MAP(template<>CTreeDataCtrl<CLogicTreeData>, CTreeCtrl)
Can anyone please shed some light on this?Code:template <class T> class CTreeDataCtrl : public CTreeCtrl { . . } class CTreeCtrl : public CWnd { . . }
Note that I am getting error at below line:
Code:BEGIN_MESSAGE_MAP(CTreeDataCtrl<CLogicTreeData>, CTreeCtrl)


Reply With Quote