Void MySocket: : OnConnect (int nErrorCode)
{
//TODO: add in this dedicated code and/or call the base class
Cstrings Buffer=_T (" ");
TCHAR TBuffer [4096]={0};
If (nErrorCode==0)
{
M_bConnected=TRUE;
CChessHigherApp * (CChessHigherApp *) AfxGetApp ();
PApp CMainFrame * pFrame=(CMainFrame *) - & gt; M_pMainWnd;
PDlg DNetWorkChess *=(DNetWorkChess *) pFrame - & gt; The GetActiveWindow ();
Memcpy (m_szBuffer, "connect to", 13);
Strcat_s (m_szBuffer, "123");
pDlg - & gt; M_inet=1000;
M_szBuffer MultiByteToWideChar (0, 0, 1, TBuffer, 4069);
Buffer. The Format (_T (" % d "), pDlg - & gt; M_inet);
AfxMessageBox (Buffer, MB_OK, 0);
Memset (m_szBuffer, 0, sizeof (m_szBuffer));
AsyncSelect (FD_READ);
}
CAsyncSocket: : OnConnect (nErrorCode);
}
Red flag is the code I wrote, but can't see the Numbers and changes in the dialog box, estimate the pointer have got the wrong number, please help me have a look