Home > Software engineering >  Newbie question... Why is it a custom function operation list box, run complains?
Newbie question... Why is it a custom function operation list box, run complains?

Time:10-06

 void Cm_Yma: : QiHao (string * Huul) 
{
STD: : string Huul1;
Cstrings CSTR.
LPCTSTR szStr [120].
For (int I=0; I & lt; 120; I++)
{
Huul1=* Huul++;
CSTR=(Huul1 c_str ());
SzStr [I]=CSTR. Get string ();
}
The UpdateData (TRUE);//debugging
Int count=m_Grid1. GetItemCount ();
M_Grid1. InsertItem (count, _T (" "));
M_Grid1. SetItemText (count, 1, _T (" hello ");

}







Everyone help little brother,

CodePudding user response:

Look at your wincore. 4345 lines of CPP, the estimate is

Huul1=* Huul++;
Or
The UpdateData (TRUE);//debugging

Such a problem, you be debugged at least immediately which line has a problem,

Baidu once again settled,

CodePudding user response:

The for loop in cross-border operations, click retry, look at the call stack window, which is to find your code to see the specific problem with the line

CodePudding user response:

Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,
  • Related