rickfdr
February 19th, 2003, 10:07 AM
I have a project which has been working in C++ 6.0 and I opened it in C++ .Net to test an upgrade. I am getting alot of errors, all of the same general type.
When a check box on the dialog called IDC_1 is clicked, the function On1() is called.
In the header file MyDialog.h, under the "Generated message map functions" section, there is the line:
afx_msg BOOL On1();
In the BEGIN_MESSAGE_MAP (again, generated by visual studio) section of MyDialog.cpp, there is the line:
ON_BN_CLICKED(IDC_1, On1)
When trying to compile in C++ .NET, I am getting the following:
"error C2440: 'static_cast': cannot convert from 'BOOL(__thiscall CMyDialog::*)(void)' to 'AFX_PMSG' None of the functions with this name in scope match the target type"
Is anyone familiar with this problem?
Thanks in advance for your help and suggestions!
Rick
When a check box on the dialog called IDC_1 is clicked, the function On1() is called.
In the header file MyDialog.h, under the "Generated message map functions" section, there is the line:
afx_msg BOOL On1();
In the BEGIN_MESSAGE_MAP (again, generated by visual studio) section of MyDialog.cpp, there is the line:
ON_BN_CLICKED(IDC_1, On1)
When trying to compile in C++ .NET, I am getting the following:
"error C2440: 'static_cast': cannot convert from 'BOOL(__thiscall CMyDialog::*)(void)' to 'AFX_PMSG' None of the functions with this name in scope match the target type"
Is anyone familiar with this problem?
Thanks in advance for your help and suggestions!
Rick