文件名称:MY-SOCKET
-
所属分类:
- 标签属性:
- 上传时间:2015-12-17
-
文件大小:3.75mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
MFC中各个Dialog之间的传值、添加会话框以及Listcontrl的使用。
并从父窗体弹出的子窗体回弹到原来的父窗体,只需要使用CDialog::onOK() 方法即可,因为模态弹出的对话框具有阻塞性,若是使用新定义的对象再进行DoModal() 方法,反而会出错,即会又重新出现了新的窗体,虽然是一样的窗体,但是内容和值都不再存在。
Updatedata()方法可以实现窗体和函数内参数值的传递。
进行CString.Format() 函数的学习,参照C语言,学习 d, c和 s等的使用
Socket通信分为客户端和服务器端,我们这次要做的就是基于MFC的CSocket类的,因为诸如像线程的开辟、调度、回收和释放等工作,MFC都帮我们封装好了,可以不用我们去管;
2.SQL Server所用的端口号应该避开应用程序会占用的端口号,并且服务器端的端口号是指定的,而客户端接收消息的端口号是随意分配的;
3.在服务器端Listen以后,客户端才会有Connect,然后服务器的onaccept接收后会去建立连接,在服务器端要保存客户端的一个Socket对象,还有一点就是onaccept不在主窗体中写了,而是在服务器中做,相当于一个while(1)的死循环,反复不断的判断有没有建立连接。-Dialog between the transfer value of each MFC, add the Session box and Listcontrl use.
And the pop-up form the parent subform rebound to its original parent form, just use CDialog :: onOK () method can, because modal dialog box that has obstructive, if the use of the new definition of the object then DoModal () method, but to be wrong, that will reappear a new form, though the form is the same, but the content and the values are no longer present.
Updatedata () method can achieve transfer form and function internal reference value.
Conduct CString.Format () function study, referring to the C language, learning d, c and s like to use
Socket Communications is divided into client and server side, this time we have to do is MFC-based CSocket class, because such like thread open, scheduling, recovery and release work, MFC have helped us a good package, can not we to manage
2.SQL Server port number should be used to avoid the application takes the port number and t
并从父窗体弹出的子窗体回弹到原来的父窗体,只需要使用CDialog::onOK() 方法即可,因为模态弹出的对话框具有阻塞性,若是使用新定义的对象再进行DoModal() 方法,反而会出错,即会又重新出现了新的窗体,虽然是一样的窗体,但是内容和值都不再存在。
Updatedata()方法可以实现窗体和函数内参数值的传递。
进行CString.Format() 函数的学习,参照C语言,学习 d, c和 s等的使用
Socket通信分为客户端和服务器端,我们这次要做的就是基于MFC的CSocket类的,因为诸如像线程的开辟、调度、回收和释放等工作,MFC都帮我们封装好了,可以不用我们去管;
2.SQL Server所用的端口号应该避开应用程序会占用的端口号,并且服务器端的端口号是指定的,而客户端接收消息的端口号是随意分配的;
3.在服务器端Listen以后,客户端才会有Connect,然后服务器的onaccept接收后会去建立连接,在服务器端要保存客户端的一个Socket对象,还有一点就是onaccept不在主窗体中写了,而是在服务器中做,相当于一个while(1)的死循环,反复不断的判断有没有建立连接。-Dialog between the transfer value of each MFC, add the Session box and Listcontrl use.
And the pop-up form the parent subform rebound to its original parent form, just use CDialog :: onOK () method can, because modal dialog box that has obstructive, if the use of the new definition of the object then DoModal () method, but to be wrong, that will reappear a new form, though the form is the same, but the content and the values are no longer present.
Updatedata () method can achieve transfer form and function internal reference value.
Conduct CString.Format () function study, referring to the C language, learning d, c and s like to use
Socket Communications is divided into client and server side, this time we have to do is MFC-based CSocket class, because such like thread open, scheduling, recovery and release work, MFC have helped us a good package, can not we to manage
2.SQL Server port number should be used to avoid the application takes the port number and t
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MY SOCKET/chatClient/chatClient.aps
MY SOCKET/chatClient/chatClient.clw
MY SOCKET/chatClient/chatClient.cpp
MY SOCKET/chatClient/chatClient.dsp
MY SOCKET/chatClient/chatClient.dsw
MY SOCKET/chatClient/chatClient.h
MY SOCKET/chatClient/chatClient.ncb
MY SOCKET/chatClient/chatClient.opt
MY SOCKET/chatClient/chatClient.plg
MY SOCKET/chatClient/chatClient.rc
MY SOCKET/chatClient/chatClientDlg.cpp
MY SOCKET/chatClient/chatClientDlg.h
MY SOCKET/chatClient/ChatSocket.cpp
MY SOCKET/chatClient/ChatSocket.h
MY SOCKET/chatClient/Debug/chatClient.exe
MY SOCKET/chatClient/Debug/chatClient.ilk
MY SOCKET/chatClient/Debug/chatClient.obj
MY SOCKET/chatClient/Debug/chatClient.pch
MY SOCKET/chatClient/Debug/chatClient.pdb
MY SOCKET/chatClient/Debug/chatClient.res
MY SOCKET/chatClient/Debug/chatClientDlg.obj
MY SOCKET/chatClient/Debug/ChatSocket.obj
MY SOCKET/chatClient/Debug/StdAfx.obj
MY SOCKET/chatClient/Debug/vc60.idb
MY SOCKET/chatClient/Debug/vc60.pdb
MY SOCKET/chatClient/ReadMe.txt
MY SOCKET/chatClient/res/chatClient.ico
MY SOCKET/chatClient/res/chatClient.rc2
MY SOCKET/chatClient/Resource.h
MY SOCKET/chatClient/StdAfx.cpp
MY SOCKET/chatClient/StdAfx.h
MY SOCKET/chatServer/chatServer.aps
MY SOCKET/chatServer/chatServer.clw
MY SOCKET/chatServer/chatServer.cpp
MY SOCKET/chatServer/chatServer.dsp
MY SOCKET/chatServer/chatServer.dsw
MY SOCKET/chatServer/chatServer.h
MY SOCKET/chatServer/chatServer.ncb
MY SOCKET/chatServer/chatServer.opt
MY SOCKET/chatServer/chatServer.plg
MY SOCKET/chatServer/chatServer.rc
MY SOCKET/chatServer/chatServerDlg.cpp
MY SOCKET/chatServer/chatServerDlg.h
MY SOCKET/chatServer/ChatSocket.cpp
MY SOCKET/chatServer/ChatSocket.h
MY SOCKET/chatServer/Debug/chatServer.exe
MY SOCKET/chatServer/Debug/chatServer.ilk
MY SOCKET/chatServer/Debug/chatServer.obj
MY SOCKET/chatServer/Debug/chatServer.pch
MY SOCKET/chatServer/Debug/chatServer.pdb
MY SOCKET/chatServer/Debug/chatServer.res
MY SOCKET/chatServer/Debug/chatServerDlg.obj
MY SOCKET/chatServer/Debug/ChatSocket.obj
MY SOCKET/chatServer/Debug/ServerSocket.obj
MY SOCKET/chatServer/Debug/StdAfx.obj
MY SOCKET/chatServer/Debug/vc60.idb
MY SOCKET/chatServer/Debug/vc60.pdb
MY SOCKET/chatServer/ReadMe.txt
MY SOCKET/chatServer/res/chatServer.ico
MY SOCKET/chatServer/res/chatServer.rc2
MY SOCKET/chatServer/Resource.h
MY SOCKET/chatServer/ServerSocket.cpp
MY SOCKET/chatServer/ServerSocket.h
MY SOCKET/chatServer/StdAfx.cpp
MY SOCKET/chatServer/StdAfx.h
MY SOCKET/chatClient/Debug
MY SOCKET/chatClient/res
MY SOCKET/chatServer/Debug
MY SOCKET/chatServer/res
MY SOCKET/chatClient
MY SOCKET/chatServer
MY SOCKET
MY SOCKET/chatClient/chatClient.clw
MY SOCKET/chatClient/chatClient.cpp
MY SOCKET/chatClient/chatClient.dsp
MY SOCKET/chatClient/chatClient.dsw
MY SOCKET/chatClient/chatClient.h
MY SOCKET/chatClient/chatClient.ncb
MY SOCKET/chatClient/chatClient.opt
MY SOCKET/chatClient/chatClient.plg
MY SOCKET/chatClient/chatClient.rc
MY SOCKET/chatClient/chatClientDlg.cpp
MY SOCKET/chatClient/chatClientDlg.h
MY SOCKET/chatClient/ChatSocket.cpp
MY SOCKET/chatClient/ChatSocket.h
MY SOCKET/chatClient/Debug/chatClient.exe
MY SOCKET/chatClient/Debug/chatClient.ilk
MY SOCKET/chatClient/Debug/chatClient.obj
MY SOCKET/chatClient/Debug/chatClient.pch
MY SOCKET/chatClient/Debug/chatClient.pdb
MY SOCKET/chatClient/Debug/chatClient.res
MY SOCKET/chatClient/Debug/chatClientDlg.obj
MY SOCKET/chatClient/Debug/ChatSocket.obj
MY SOCKET/chatClient/Debug/StdAfx.obj
MY SOCKET/chatClient/Debug/vc60.idb
MY SOCKET/chatClient/Debug/vc60.pdb
MY SOCKET/chatClient/ReadMe.txt
MY SOCKET/chatClient/res/chatClient.ico
MY SOCKET/chatClient/res/chatClient.rc2
MY SOCKET/chatClient/Resource.h
MY SOCKET/chatClient/StdAfx.cpp
MY SOCKET/chatClient/StdAfx.h
MY SOCKET/chatServer/chatServer.aps
MY SOCKET/chatServer/chatServer.clw
MY SOCKET/chatServer/chatServer.cpp
MY SOCKET/chatServer/chatServer.dsp
MY SOCKET/chatServer/chatServer.dsw
MY SOCKET/chatServer/chatServer.h
MY SOCKET/chatServer/chatServer.ncb
MY SOCKET/chatServer/chatServer.opt
MY SOCKET/chatServer/chatServer.plg
MY SOCKET/chatServer/chatServer.rc
MY SOCKET/chatServer/chatServerDlg.cpp
MY SOCKET/chatServer/chatServerDlg.h
MY SOCKET/chatServer/ChatSocket.cpp
MY SOCKET/chatServer/ChatSocket.h
MY SOCKET/chatServer/Debug/chatServer.exe
MY SOCKET/chatServer/Debug/chatServer.ilk
MY SOCKET/chatServer/Debug/chatServer.obj
MY SOCKET/chatServer/Debug/chatServer.pch
MY SOCKET/chatServer/Debug/chatServer.pdb
MY SOCKET/chatServer/Debug/chatServer.res
MY SOCKET/chatServer/Debug/chatServerDlg.obj
MY SOCKET/chatServer/Debug/ChatSocket.obj
MY SOCKET/chatServer/Debug/ServerSocket.obj
MY SOCKET/chatServer/Debug/StdAfx.obj
MY SOCKET/chatServer/Debug/vc60.idb
MY SOCKET/chatServer/Debug/vc60.pdb
MY SOCKET/chatServer/ReadMe.txt
MY SOCKET/chatServer/res/chatServer.ico
MY SOCKET/chatServer/res/chatServer.rc2
MY SOCKET/chatServer/Resource.h
MY SOCKET/chatServer/ServerSocket.cpp
MY SOCKET/chatServer/ServerSocket.h
MY SOCKET/chatServer/StdAfx.cpp
MY SOCKET/chatServer/StdAfx.h
MY SOCKET/chatClient/Debug
MY SOCKET/chatClient/res
MY SOCKET/chatServer/Debug
MY SOCKET/chatServer/res
MY SOCKET/chatClient
MY SOCKET/chatServer
MY SOCKET
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.