局域网聊天室系SQL+VC++

时间:2020-09-01 16:33:05 计算机网络毕业论文 我要投稿

局域网聊天室系SQL+VC++

毕业论文

目   录
前言 1
1  系统开发环境和主要技术简介 2
1.1 Visual C++概述 2
1.1.1  Visual C++的简介 2
1.1.2  Visual C++的发展过程 2
1.1.3  Visual C++的特点 3
1.1.4  Visual C++6.0的主要特性 3
1.1.5  MFC和Visual C++ 3
1.2  Microsoft SQL Server 2000概述 4
1.2.1  Microsoft SQL Server 2000的发展 4
1.2.2  Microsoft SQL Server 2000的主要功能 4
1.2.3  Microsoft SQL Server 2000的的组成 5
1.3  开放数据库系统互连ODBC 6
1.3.1  使用ODBC连接 6
1.3.2  ODBC接口的工作原理 6
1.4  微软基础类套接字MFC Socket编程 8
1.4.1  MFC Socket编程机制 8
1.4.2  CSocket类编程模型 8
1.5  MFC 的ODBC编程 10
1.5.1  MFC的ODBC类 10
1.5.2  CRecordset类 10
2  系统总体设计 12
2.1  需求分析 12
2.1.1  开发背景 12
2.1.2  功能概述 12
2.1.3  运行环境 13
2.1.4  系统总体方案设计 14
2.1.5  数据流图(DFD) 14
2.2  概要设计 16
2.2.1  结构化设计方法 16
2.2.2  SC图 16
2.2.3  数据库设计 19
3  系统详细设计 21
3.1  服务器详细设计 21
3.1.1  服务器界面设计 21
3.1.2  设置服务器端口 21
3.1.3  启动服务器 23
3.1.4  向客户端发送信息 24
3.1.5  关闭服务器 26
3.2  客户端详细设计 27
3.2.1  客户端界面设计 27
3.2.2  请求服务 27
3.2.3  用户注册 28
3.2.4  用户登录 31
3.2.5  更改个人信息 32
3.2.6  显示在线好友信息 33
3.2.7  选择聊天对象 35
3.2.8  向好友发送消息 36
3.2.9  关闭客户端 37
结束语 38
参考文献 39
致谢 40

 
局域网聊天室系统


摘   要: 本项目采用软件工程的方法,综合运用数据库技术、程序设计技术、网络技术,以Visual C++ 6.0作为系统前台应用程序开发工具,Microsoft SQL Server 2000作为后台DBMS(数据库管理系统),通过Microsoft 操作系统自带的ODBC管理工具使两者进行连接从而进行软件开发。此局域网聊天工具采用客户端/服务器(C/S)模式和TCP连接。它有两个程序组成:服务器和客户端,首先需要登录服务器,需要指定服务器地址和端口号,同时注册1个网名,与服务器建立连接,如果所取网名已经被其他已经登录的客户端使用,服务器会告诉客户端 ,要求重新登录。登录后,客户端可以在自己的界面上看到其他在线的客户端,并可以互相聊天,可以和指定的1个客户端说话,也可以跟所有人说话。服务器模块主要用来维护网络上所有用户的信息,包括用户名、密码、好友、好友IP等信息;聊天客户端模块主要包括用户注册、用户登录、好友列表、发送信息、接收信息等。是1套适用于Internet网络使用的`网络聊天工具,其操作简单,灵活性好,运行也比较稳定。

关键词:网络;聊天工具;客户端/服务器; 传输控制协议。
 
Local Area Chat Room System


Abstract: The program project adopts the method of the software project , use technology of the database, program designing technique and the network technology, use Visual C++6.0 to develop the front side of application , Microsoft SQL Server  2000 is used as the back supporter DBMS( the database management system ), connect the front and the back of the software by ODBC which is embedded in Microsoft OS to develop the software.This local area network chat tool adopts client/server mechanism(C/S) and TCP.It is composed of two components:the server and the client,first of all,we should login the server,and also should set the server address and port,we must regedit a net name at the same time,so we can connect the server.If the net name is used by another logined client,then the server will inform the client that it should login again.If the client logins successfully,it can see the others at its interface,then it can chat with each other(one or all).The server model is mainly used to prootect all users ’ information ,incuuding user’s name,password,friends,the IP address and so on;The client model includes user regediting,user logining,the list of friends,sending message,receiving message and so on. This network chat tool can be used in internet environment ,it can be operated simply, its flexibility is fine and can run steadily.

Keywords:network;chat tool;client/server;TCP.

前 言
随着网络的普及化,网络作为人们相互间沟通与交流联系的现代化工具日益重要,可以说现在人们的生活已经离不开网络。在现实生活中人们可以通过多种手段与家人亲戚朋友交流通讯,像电话,电子邮件等等。但这些手段都有些缺点,要么费用太高,要么实时性不强,要么1次只能和1位好友进行交流。于是这就需要1种便宜,快速,能同时与多个好友进行通讯的网络工具的出现,而网络聊天工具就满足了这些需求,填补了这个空白。
随着网络技术和数据库管理系统的发展,C/S体系结构在软件的开发中越来越流行。因为这种结构的应用软件可以充分发挥网络的作用和数据库系统的优势,以满足人们各种应用的需求。
同时,Microsoft公司的Visual C++编程开发环境,已经成为各国程序员开发系统程序和应用程序的首选开发工具。这是由于它有功能强大,支持面向对象,模块化,代码可以重用及组件共享等特点,可以大大提供软件和系统开发的效率,缩短开发周期及便于系统的维护和升级。
网络的飞速发展使网络应用程序的开发地位显的越来越重要,而网络应用程序的开发和传统应用程序的开发在思想和实现上有很大的区别。Microsoft公司的Visual C++编程开发环境在进行网络应用程序开发方面有以下几个特点:

【局域网聊天室系SQL+VC++】相关文章:

1.局域网简历范文

2.局域网组建与应用

3.局域网搭建简历范文

4.局域网内IP冲突怎么解决

5.怎么防止局域网病毒传播

6.教你局域网怎么抢网速

7.教你如何提高局域网速度

8.怎么轻松测试局域网网速

9.局域网网络限制如何突破