Home > Software engineering >  MFC program execution to SetAllPorts function cycle, interrupt the showwindow function
MFC program execution to SetAllPorts function cycle, interrupt the showwindow function

Time:09-16

If an array? This should be how to modify? Turn to the great god

CodePudding user response:

Check whether the parameters in the getdlgitem for valid data, preliminary judgment is parameter is invalid or the result of error values

CodePudding user response:

GetDlgItem may return NULL, GetDlgItem () - & gt; Will lead to access illegal pointer

The CWnd * pCtrl=GetDlgItem (XXX);
If (pCtrl)
{
PCtrl - & gt; XXXX
}

  • Related