Home > Back-end >  Help to see what's the problem with this code, why always go wrong
Help to see what's the problem with this code, why always go wrong

Time:10-19

Void CDb003Dlg: : OnClickListStudent (NMHDR * pNMHDR, LRESULT * pResult)
{
//TODO: Add your the control notification handler code here
Int n=m_StudentList. GetSelectionMark ();
M_strId=m_StudentList. GetItemText (n, 0).
M_strName=m_StudentList. GetItemText (n, 1);
Cstrings STR=m_StudentList. GetItemText (n, 2);
M_NA=m_StudentList. GetItemText (n, 3);
M_TEL=m_StudentList. GetItemText (n, 4);
M_COLL=m_StudentList. GetItemText (n, 5);
m_DATA=https://bbs.csdn.net/topics/m_StudentList.GetItemText (n, 6);
M_MON=m_StudentList. GetItemText (n, 7);
M_nScore=atoi (STR) GetBuffer (10));
STR. ReleaseBuffer ();
The UpdateData (FALSE);
* pResult=0;
}
Make a MFC procedures, can run, but has been shown, this code seems to be the problem, how about what's the problem with this code is not,,

CodePudding user response:

Step, look line error

CodePudding user response:

This which can see ah, heel breakpoints, watch the output, the wrong which, what's the words of the output,

CodePudding user response:

Judge program error, it is better to set breakpoints, debug tracking by oneself

CodePudding user response:

According to the debug button, debugging
  • Related