Advertisement

07.14.2008 at 09:41PM PDT, ID: 23565004
[x]
Attachment Details

MFC: Message map build error converting from VC6 to 2005

Asked by DHamilton01 in Microsoft Visual C++.Net, C++ Programming Language, Windows MFC Programming

I am trying to build an MFC project created in VC6, in 2005. I have this entry in the msg map (that has worked ok in VC6):

Header:
    afx_msg BOOL OnSubmitButton();

cpp:
      ON_BN_CLICKED(IDC_SubmitButton,             OnSubmitButton)


with this func prototype:

BOOL CSchAppt::OnSubmitButton() {

In the 2005 build I get this error message:

1>c:\cv whidbey\cv250\schappt.cpp(183) : error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall CSchAppt::* )(void)' to 'AFX_PMSG'
1>        None of the functions with this name in scope match the target type


Can anyone tell me how to correct this? Thanks!Start Free Trial
 
 
[+][-]07.14.2008 at 11:41PM PDT, ID: 22004586

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 09:43AM PDT, ID: 22008577

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 11:14AM PDT, ID: 22009367

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 11:39PM PDT, ID: 22013668

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 06:41AM PDT, ID: 22050381

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C++.Net, C++ Programming Language, Windows MFC Programming
Sign Up Now!
Solution Provided By: AndyAinscow
Participating Experts: 3
Solution Grade: B
 
 
[+][-]08.17.2008 at 08:22AM PDT, ID: 22247237

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628