This error message is indicating that there is an issue with the usage of a member function called 'func_Message' in the 'MainWindow' class. The error message suggests that the function may need to be passed by reference using the '&' operator.

The error occurs in two places: in the constructor of the 'MainWindow' class and in the definition of the 'func_Message' function.

To fix this error, you should add the '&' operator before the function name 'func_Message' wherever it is used. For example, in the constructor, the line should be changed to:

lpPrevWndFunc=(WNDPROC)SetWindowLongPtr(hwnd,GWLP_WNDPROC,(LONG)&func_Message);

And in the function definition, change the signature to include the '&' operator:

LRESULT MainWindow::func_Message(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam

dQTProjectsJBMNmainwindowcpp29 error invalid use of member LRESULT MainWindowfunc_MessageHWND UINT WPARAM LPARAM did you forget the & JBMNmainwindowcpp In constructor MainWindowMainWindowQWidgetJBMNma

原文地址: https://www.cveoy.top/t/topic/cgmN 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录