void CStrDlg::OnButton1() 
{
// TODO: Add your control notification handler code here
CString str1 = "abc";
CString str2;
str2.Format(str1+"%");
GetDlgItem(IDC_EDIT1)->SetWindowText(str2);

}
然后就出了如题那个错误,各位帮忙看一下吧!