Resuming MFC / Visual Studio 6.0 project in VS2010

I am trying to create a Visual Studio 6.0 MFC project in Visual Studio 2010. The compiler gives me an error:

error C2440: 'static_cast': cannot be converted from 'void (__thiscall ProgressDialog :: *) (void)' to 'LRESULT (__thiscall CWnd :: *) (WPARAM, LPARAM)'

// --------------------------------- // Message map

BEGIN_MESSAGE_MAP (ProgressDialog, CDialog) ON_BN_CLICKED (IDC_CANCEL, OnCancelClicked) ON_MESSAGE (MSG_FINISHED, OnFinished) END_MESSAGE_MAP ()

Any suggestions -?

Pedro

+3
source share
2 answers

ON_MESSAGE ON_MESSAGE_VOID. ON_MESSAGE LRESULT WPARAM LPARAM. , OnFinished() - , void. , ON_MESSAGE_VOID.

:

++ Q A - Microsoft Systems Journal 1999 .

+6

MFC7.0 , :

ON_MESSAGE

afx_msg LRESULT (CWnd::*)(WPARAM, LPARAM)

ProgressDialog::OnFinished LRESULT.

0

All Articles