Error c2440: 'static _ cast': cannot convert from 'void (_ thiscall ctrunkpage ::*)

Source: Internet
Author: User

XP SP3

VS 2005 SP1 English version

 

Error: Error c2440: 'static _ cast': cannot convert from 'void (_ thiscall ctrunkpage: *) (void) 'to 'void (_ thiscall c0000target :: *) (nmhdr *, lresult *)'
2> none of the functions with this name in scope match the target type

 

The error when the notifm control is used to customize the class and send the notify message to the main window.

Solution: Change the parameter type of the function to (nmhdr * nmhdr, lresult * lresult.

 

References:

Use of custom control

Http://old.blog.edu.cn/user1/3527/archives/2007/1804664.shtml

Error c2440: 'static _ cast' lresult Error

Http://hi.baidu.com/wuxiaoming1733/blog/item/6fc3df09e68dcc8ad1581b93.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.