freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

網(wǎng)絡(luò)聊天軟件的設(shè)計(jì)與實(shí)現(xiàn)論文-資料下載頁

2025-06-28 21:37本頁面
  

【正文】 ze=()。 =150。 //分別駐CEditView和CMyClientView為基礎(chǔ)創(chuàng)建分割窗體 if(!(0,0,RUNTIME_CLASS(CEditView),size,pContext)) return FALSE。 if(!(1,0,RUNTIME_CLASS(CMyClientView),CSize(0,0),pContext)) //將第二個(gè)窗口設(shè)為激活窗口 (1,0,(CView*)(1,0))。 return TRUE。 // return CFrameWnd::OnCreateClient(lpcs, pContext)。}//客戶端初始化void CMyClientDoc::OnFileConnet() { // TODO: Add your mand handler code here CSetDlg m_Setdlg。 if(()!=IDOK) return。 mPort=。 strAddr=。 name=。 //關(guān)閉上次有效連接 if(m_socket!=NULL) { m_socketClose()。 delete m_socket。 } //創(chuàng)建一個(gè)新的套接字 m_socket=new CChatSocket(this)。 if(!m_socketCreate()) { AfxMessageBox(創(chuàng)建SOCKET失敗!)。 delete m_socket。 m_socket=NULL。 return。 } //連接服務(wù)器 if(!m_socketConnect(strAddr,mPort)) { AfxMessageBox(連接服務(wù)器失敗!)。 delete m_socket。 m_socket=NULL。 return。 } AfxMessageBox(連接服務(wù)器成功!)。 CString temp=。 temp+=上線了!。 m_socketSend(temp,strlen(temp))。 POSITION pos=GetFirstViewPosition( )。 CMyClientView * eView=(CMyClientView *)GetNextView(pos) 。 CMyClientView * cView=(CMyClientView *)GetNextView(pos) 。 CEditamp。edit=cViewGetEditCtrl()。 (name)。}//客戶端接收服務(wù)器的轉(zhuǎn)發(fā)信息void CMyClientDoc::ReceiveMessage(){ //確認(rèn)套接字可用 ASSERT(m_socket)。 char buffer[100]。 int len=m_socketReceive(buffer,99)。 //檢查信息是否有效 if(len1) { AfxMessageBox(接收信息為空!)。 return。 } buffer[len]=0。 ShowMessage(buffer)。}//客戶端顯示服務(wù)器的轉(zhuǎn)發(fā)信息void CMyClientDoc::ShowMessage(LPSTR msg){ //依次獲取對應(yīng)的視圖 POSITION pos=GetFirstViewPosition()。 while(pos!=NULL) { CEditView *view=(CEditView*)GetNextView(pos)。 if(viewIsKindOf(RUNTIME_CLASS(CMyClientView))) continue。 CEditamp。 edit=viewGetEditCtrl()。 char buffer[100]。 wsprintf(buffer,%s\r\n, msg)。 int len=()。 (len,len)。 (buffer)。 }}//客戶端提交聊天信息void CMyClientDoc::SendMessage(LPSTR msg){ if(!m_socketSend(msg,strlen(msg))) { AfxMessageBox(發(fā)送消息失敗!)。 return。 }}//客戶端接收用戶輸入的聊天信息void CMyClientView::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags){ // TODO: Add your message handler code here and/or call default //如果用戶按下回車則發(fā)送數(shù)據(jù) if(nChar==VK_RETURN) { CMyClientDoc* pDoc=GetDocument()。 ASSERT_VALID(pDoc)。 CEditamp。edit=GetEditCtrl()。 char buffer[100]。 memset(buffer,0,sizeof(buffer))。 int index=()1。 (index,buffer,99)。 pDocSendMessage(buffer)。 (pDocname+ )。 } else { CEditView::OnChar(nChar,nRepCnt,nFlags)。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1