After converting VC++ 6 project to VC++ 2010 I've fixed all error but one of them I cannot find solution. An Error which I received when building:
Error 1 error C2440: 'static_cast' : cannot convert from 'void (__thiscall CUploadDlg::* )(void)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
Error code:
BEGIN_MESSAGE_MAP(CUploadDlg, CDialog)
//{{AFX_MSG_MAP(CUploadDlg)
ON_MESSAGE(PARSE_DB_MSG, ParseUserDb)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
Code of called method:
void CUploadDlg::ParseUserDb()
{
m_parse_db.ShowWindow(SW_SHOW);
m_block_numbers = getBlockNumber();
Sleep(1200);
// CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd();
// if(pFrame) pFrame->UpdateDataBase(m_Path);
m_parse_finish.ShowWindow(SW_SHOW);
// Sleep(500);
// pFrame->SaveDataBase();//
// CDialog::OnCancel();
//return 0L;
}
Project type: Application, uses MFC in a Static Library