请教GetDlgItemText()
UINT nCheckIDs[3]={IDC_DO_LAN,IDC_DO_GAME,IDC_DO_OTHER};CButton * pBtn;
for (int i=0;i<3;i++)
{
pBtn=(CButton *)GetDlgItemText (nCheckIDs[i]);
stri;
if (pBtn->GetCheck())
{
pBtn->GetWindowText(strCtrl);
str=str+strCtrl+" ";
}
}
会提示红色部分出错,请问要怎么样换正