zoukankan      html  css  js  c++  java
  • CSizingControlBar Error C2440: “static_cast”: 无法从“UINT (__thiscall CSizingControlBarG::* )(CPoint)”转换为>>>

    发现CsizingControlBar是一个很好的实现VC界面的类,下来编译出现如下错误:

    错误 1 error C2440: “static_cast”: 无法从“UINT (__thiscall CSizingControlBarG::* )(CPoint)”转换为“LRESULT (__thiscall CWnd::* )(CPoint)” e:\tempstudy\mfcopengl\mfcopengl\scbarg.cpp 57

    解决:查看CWnd类

    afx_msg LRESULT OnNcHitTest(CPoint point);

    而在CSizingControlBar中是  afx_msg UINT OnNcHitTest(CPoint point);

    只要将这些UINT 替换为 LRESULT 就OK

    原因:因为原作者的代码是VC6的,我用的是VC2005, 可能是版本不同导致的


  • 相关阅读:
    Remote API(RAPI)之 文件管理
    vue前端框架

    托马斯彩色回旋
    VUE?
    cookie与session
    ajax前后端分离
    djangoIII
    Django少年
    django三板斧
  • 原文地址:https://www.cnblogs.com/shadow21/p/2006006.html
Copyright © 2011-2022 走看看