Error
-
I have a dialog with a start button and I want to add a listen function on it. Below is the code that I try: void CTCPTestDlg::OnBtnstart(LPVOID lParam) { // TODO: Add your control notification handler code here } When I compile, ot occur a error: error C2511: 'OnBtnstart' : overloaded member function 'void (void *)' not found in 'CTCPTestDlg' I don't know how to solve it. can somebody help me
-
I have a dialog with a start button and I want to add a listen function on it. Below is the code that I try: void CTCPTestDlg::OnBtnstart(LPVOID lParam) { // TODO: Add your control notification handler code here } When I compile, ot occur a error: error C2511: 'OnBtnstart' : overloaded member function 'void (void *)' not found in 'CTCPTestDlg' I don't know how to solve it. can somebody help me
check your declaration in the .h file most probably you have a different declaration there. void CTCPTestDlg::OnBtnstart(LPVOID lParam) in .cpp afx_msg void OnBtnstart(LPVOID lParam) in .h (if function is auto-generated) void OnBtnstart(LPVOID lParam) in .h (if function is manually generated)