Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8615899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:29:30+00:00 2026-06-12T05:29:30+00:00

After converting VC++ 6 project to VC++ 2010 I’ve fixed all error but one

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:29:32+00:00Added an answer on June 12, 2026 at 5:29 am

    Look at the function prototype expected by the message cracker for MFC message maps. ON_MESSAGE() is a generic wrapper that has no knowledge of how to crack the given message for anything besides the basic msgID (which is how it is distributed to the map). The remaining parameters must be passed on to the message handler, and thus it expected ParseUserDb to look like this:

    LRESULT CUploadDialog::ParseUserDb(WPARAM wParam, LPARAM lParam)
    {
    // your code; don't forget a return value, likely 0L;
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After converting project to ARC, The converting operation removed all the - assign, retain
I'm trying to build gtest on Visual Studio 2010. After converting the solution file,
After one week searching and converting many algorithm from other language into php to
I was using hg, now I am converting to Git. But after installing it,
After discovering about Javascript namespaces, I tried to implement them but I run into
After converting to Visual Studio 2010 with ReSharper5 some of my unit tests started
After converting a VS 2005 project to VS 2008 I started encountering the following
After converting a Hybrid ASP.NET MVC1 app to MVC2 I'm getting the following error
I create a new solution with one project, and then change the target platform
After converting my Web Site Project to a Web Application Project , some of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.