CChildSocket* pChild = new CChildSocket;
YesnoDlg yesno;
CString s_message,ip,connect;
UINT port;

//클라이언트가 접속해 옴을 리스트에 출력한다.

BOOL check=Accept(*pChild);

if(check == FALSE){
delete pChild;
AfxMessageBox(_T("접속허용실패"));
return;
}

pChild->GetPeerName(ip,port);

s_message.Format(_T("Connection request from[%s]"),ip);

yesno.request_txt.SetWindowTextW(s_message); //요기서 에러 request_txt는 텍스트 에디트박스 변수명
int res = yesno.DoModal();



에러 주석달은데에서 메모리 에러가 나는데 이유좀 알려줘..

어떻게 고쳐야 맞는거야?

살려줘 ㅠㅠ