--------------------Configuration: Microsoft SoftWare - Win32 Debug--------------------
Compiling...
Microsoft SoftWareDlg.cpp
D:\VC++\MSDev98\MyProjects\Microsoft SoftWare\Microsoft SoftWareDlg.cpp(181) : error C2039: 'OnButton2' : is not a member of 'CDialog'
d:\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
执行 cl.exe 时出错.Microsoft SoftWareDlg.obj - 1 error(s), 0 warning(s)为什么会这样啊 按书上说的步骤做的 可是不行知道的哥哥姐姐说下。
代码如下(对你们来说一定很简单- -):
void CMicrosoftSoftWareDlg::OnButton2()
{
// TODO: Add your control notification handler code here
UpdateData(true);
AfxMessageBox(m_CString2);
CDialog::OnButton2();
}
Compiling...
Microsoft SoftWareDlg.cpp
D:\VC++\MSDev98\MyProjects\Microsoft SoftWare\Microsoft SoftWareDlg.cpp(181) : error C2039: 'OnButton2' : is not a member of 'CDialog'
d:\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
执行 cl.exe 时出错.Microsoft SoftWareDlg.obj - 1 error(s), 0 warning(s)为什么会这样啊 按书上说的步骤做的 可是不行知道的哥哥姐姐说下。
代码如下(对你们来说一定很简单- -):
void CMicrosoftSoftWareDlg::OnButton2()
{
// TODO: Add your control notification handler code here
UpdateData(true);
AfxMessageBox(m_CString2);
CDialog::OnButton2();
}
加消息响应函数:
1.头文件中声明函数,
2.源文件中加消息映射,
3.源文件中定义实现函数
删除有个button2的东西,重新创建右键按钮--生成事件--选择单击消息--点击okVC会为你自动生成。
CDialog::OnButton2();