My application built with no problem under VC++6 but I'm trying to port it
to VC++ .NET in order to use some snazy interface components. Unfortunately,
I'm getting compilation errors building the original code.
I'm running Windows XP and the About MS VC++ box has the following version
information:
MS Development Environmant 2003 - Version 7.1.3088
MS .NET Framework 1.1 - Version 1.1.4322
Installed Products:
Microsoft Visual C++ .NET 69586-335-0000007-18882
I have 3 C2440 errors, all in the AFX_MSG_MAP block. Here's an example.
The error:
error C2440: 'static_cast' : cannot convert from 'void (__thiscall
CBMToolLogView::*)(NMHDR *,LRESULT *)' to 'AFX_PMSG'
In BMToolLogView.h:
// Generated message map functions
protected:
//{{AFX_MSG(CBMToolLogView)
...
afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
...
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
In BMToolLogView.cpp:
BEGIN_MESSAGE_MAP(CBMToolLogView, CBMToolListView)
//{{AFX_MSG_MAP(CBMToolLogView)
....
ON_COMMAND(IDM_LF_VIEW, OnDblclk) <-- This is where the error is
flagged
....
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
...
void CBMToolLogView::OnDblclk(NMHDR* pNMHDR, LRESULT* pResult)
{
...
}
As always, any help is hugely appreciated.
--- Al.