Home > Software engineering >  Can you tell me where the problem is how to solve
Can you tell me where the problem is how to solve

Time:11-07

The server receives the data would be an error

Void CWnd: : SetWindowText (LPCTSTR lpszString)
{
ENSURE (this);
ENSURE (: : IsWindow (m_hWnd) | | (m_pCtrlSite!=NULL));

If (m_pCtrlSite==NULL)
: : SetWindowText (m_hWnd, lpszString);
The else
M_pCtrlSite - & gt; SetWindowText (lpszString);
}

//////////////////////////////////////////////////////////////////////////////////
Int AFXAPI AfxMessageBox (UINT nIDPrompt, UINT nType, UINT nIDHelp)
{
Cstrings string;
if (! String. LoadString (nIDPrompt))
{
TRACE (traceAppMsg, 0, "Error: failed to load the message box prompt string 0 x % 4 x. \ n",
NIDPrompt);
ASSERT (FALSE);
}
If (nIDHelp==(UINT) - 1)
NIDHelp=nIDPrompt;
Return AfxMessageBox (string, nType nIDHelp);
}
Can you tell me where the problem is, novice small white, really don't know how to solve

CodePudding user response:

Click retry, see the call stack, step by step back to your code changes the solution
In light of the circumstance from the map may be GetDlgItem () returns a null pointer, pay attention to whether or not the window handle, effectively controls whether effective

CodePudding user response:

reference 1st floor zgl7903 response:
click retry, see the call stack, step by step back to your code changes the solution
In light of the circumstance from the map may be GetDlgItem () returns a null pointer, pay attention to whether or not the window handle, effectively controls whether effective
thank you!! And learn a skill!

CodePudding user response:

The Debug mode to open the call stack and see your function call stack, find the error function
  • Related