资源简介
基于c++的简单文件传输,有服务器和客户端,vc++6.0可用

代码片段和文件信息
// FileTransferClient.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “FileTransferClient.h“
#include “MainFrm.h“
#include “FileTransferClientDoc.h“
#include “FileTransferClientView.h“
#include
#pragma comment( lib “shlwapi.lib“ )
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFileTransferClientApp
BEGIN_MESSAGE_MAP(CFileTransferClientApp CWinApp)
//{{AFX_MSG_MAP(CFileTransferClientApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFileTransferClientApp construction
CFileTransferClientApp::CFileTransferClientApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CFileTransferClientApp object
CFileTransferClientApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CFileTransferClientApp initialization
BOOL CFileTransferClientApp::InitInstance()
{
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
// don‘t need this registry stuff
/// SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
/// LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// initialize path name for current module and use it for .INI file creation
CString sModulePath;
::GetModuleFileName( NULL sModulePath.GetBuffer(255) 255 );
::PathMakePretty( sModulePath.GetBuffer(255) );
::PathRemoveFileSpec( sModulePath.GetBuffer(255) );
sModulePath.ReleaseBuffer();
// Use an .ini paradigm to load settings rather than the registry
// This makes for cleaner installs/unins
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 33932 2013-04-23 16:39 文件传输(c++)\文件传输客户端\FileTransferClient.aps
文件 5616 2004-10-23 22:56 文件传输(c++)\文件传输客户端\FileTransferClient.cpp
文件 4874 2004-10-24 16:50 文件传输(c++)\文件传输客户端\FileTransferClient.dsp
文件 794 2004-10-24 12:08 文件传输(c++)\文件传输客户端\FileTransferClient.dsw
文件 1488 2004-10-23 17:16 文件传输(c++)\文件传输客户端\FileTransferClient.h
文件 74752 2013-11-03 01:27 文件传输(c++)\文件传输客户端\FileTransferClient.ncb
文件 731136 2013-11-03 01:27 文件传输(c++)\文件传输客户端\FileTransferClient.opt
文件 2294 2013-04-23 16:40 文件传输(c++)\文件传输客户端\FileTransferClient.plg
文件 13429 2004-10-26 21:21 文件传输(c++)\文件传输客户端\FileTransferClient.rc
文件 1982 2004-10-23 17:16 文件传输(c++)\文件传输客户端\FileTransferClientDoc.cpp
文件 1607 2004-10-23 17:16 文件传输(c++)\文件传输客户端\FileTransferClientDoc.h
文件 19025 2004-10-30 13:57 文件传输(c++)\文件传输客户端\FileTransferClientView.cpp
文件 2891 2004-10-29 22:05 文件传输(c++)\文件传输客户端\FileTransferClientView.h
文件 2598 2004-10-26 20:37 文件传输(c++)\文件传输客户端\MainFrm.cpp
文件 1581 2004-10-23 17:16 文件传输(c++)\文件传输客户端\MainFrm.h
文件 4599 2004-10-23 17:16 文件传输(c++)\文件传输客户端\ReadMe.txt
文件 1078 2004-10-24 17:59 文件传输(c++)\文件传输客户端\res\FileTransferClient.ico
文件 410 2004-10-23 17:16 文件传输(c++)\文件传输客户端\res\FileTransferClient.rc2
文件 1078 2004-10-23 17:16 文件传输(c++)\文件传输客户端\res\FileTransferClientDoc.ico
文件 766 2004-10-24 12:53 文件传输(c++)\文件传输客户端\res\icon1.ico
文件 1078 2004-10-23 17:16 文件传输(c++)\文件传输客户端\res\Toolbar.bmp
文件 1108 2004-10-26 20:49 文件传输(c++)\文件传输客户端\resource.h
文件 220 2004-10-23 17:16 文件传输(c++)\文件传输客户端\StdAfx.cpp
文件 1102 2004-10-23 17:16 文件传输(c++)\文件传输客户端\StdAfx.h
文件 33072 2013-04-16 17:03 文件传输(c++)\文件传输服务器端\FileTransferServer.aps
文件 5616 2004-10-23 23:21 文件传输(c++)\文件传输服务器端\FileTransferServer.cpp
文件 4874 2004-10-26 21:46 文件传输(c++)\文件传输服务器端\FileTransferServer.dsp
文件 561 2009-12-16 20:27 文件传输(c++)\文件传输服务器端\FileTransferServer.dsw
文件 1488 2004-10-23 17:19 文件传输(c++)\文件传输服务器端\FileTransferServer.h
文件 115712 2013-11-03 01:26 文件传输(c++)\文件传输服务器端\FileTransferServer.ncb
............此处省略28个文件信息
相关资源
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- 基于mfc的多线程文件传输
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 文件传输和聊天程序(c语言实现)
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- 基于CS的TCP文件传输程序设计
- mfc 调用redis
评论
共有 条评论