定义和数据类型 [英] Defined and Data types
本文介绍了定义和数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法理解以下错误,尽管我将定义从void更改为lresult,但还是再次出错了..如果我可以使用Long代替呢?还是其他方式?
非常感谢!
《《错误C2440:"static_cast":不能从" void(__thiscall CIPTVServerView :: *)(WPARAM,LPARAM)"更改为" LRESULT(__thiscall CWnd :: *)(WPARAM,LPARAM)"》) "h2_lin">解决方案
也许会帮助您:
http://social.msdn.microsoft.com/Forums/eu/vcmfcatl/thread/208499e4-0c09-4835-ad80-313121eb75d5 [ http://www.pcreview.co.uk/forums/error- c2440-static_cast-cannot-convert-t1430864.html [ ^ ]
http://www.viva64.com/en/k/0011/ [ http://social.msdn.microsoft.com/Forums/eu/vcmfcatl/thread/208499e4-0c09-4835-ad80-313121eb75d5 [解决方案Maybe it will help you:
http://social.msdn.microsoft.com/Forums/eu/vcmfcatl/thread/208499e4-0c09-4835-ad80-313121eb75d5[^]
http://www.pcreview.co.uk/forums/error-c2440-static_cast-cannot-convert-t1430864.html[^]
http://www.viva64.com/en/k/0011/[^]
Besides, with the different return types, your cast cannot work as the stack could get messed up.
See this link for similar problem and solution.
http://social.msdn.microsoft.com/Forums/eu/vcmfcatl/thread/208499e4-0c09-4835-ad80-313121eb75d5[^]
这篇关于定义和数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文