• 大小: 1.24MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-29
  • 语言: C/C++
  • 标签: MFC  聊天系统  

资源简介

MFC做的点对点聊天小系统,对学习MFC网络编程应该有帮助。

资源截图

代码片段和文件信息

// MySocket.cpp : implementation file
//

#include “stdafx.h“
#include “SecClient.h“
#include “MySocket.h“
#include “SecClientDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// MySocket

MySocket::MySocket(CSecClientDlg* pMainDlg)
{
m_pMainDlg = pMainDlg;
}

MySocket::~MySocket()
{
}


// Do not edit the following lines which are needed by ClassWizard.
#if 0
BEGIN_MESSAGE_MAP(MySocket CSocket)
//{{AFX_MSG_MAP(MySocket)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#endif // 0

/////////////////////////////////////////////////////////////////////////////
// MySocket member functions


void MySocket::OnReceive(int nErrorCode) 
{
// TODO: Add your specialized code here and/or call the base class
m_pMainDlg->ClientReceive();
CSocket::OnReceive(nErrorCode);
}

void MySocket::OnClose(int nErrorCode)
{
m_pMainDlg->ClientSocketClose();
CSocket::OnClose(nErrorCode);
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     目录          0  2008-05-27 23:24  SecClient\Debug

     文件       2543  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt.h

     文件        977  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_argchk.h

     文件       3869  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_cfg.h

     文件      31702  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_cipher.h

     文件       8392  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_custom.h

     文件      12457  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_hash.h

     文件      14482  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_mac.h

     文件      14365  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_macros.h

     文件      17093  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_math.h

     文件        691  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_misc.h

     文件      20998  2007-11-15 14:41  SecClient\libtomcrypt\tomcrypt_pk.h

     文件       3989  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_pkcs.h

     文件       7224  2007-05-12 10:46  SecClient\libtomcrypt\tomcrypt_prng.h

     目录          0  2008-05-27 23:24  SecClient\libtomcrypt

     文件       1056  2008-05-27 23:08  SecClient\MySocket.cpp

     文件       1260  2007-11-14 22:16  SecClient\MySocket.h

     目录          0  2008-05-27 23:24  SecClient\Release

     文件     160838  2007-11-14 20:56  SecClient\res\Chimera blue.ico

     文件     160838  2007-11-14 20:56  SecClient\res\Sdbb4.ico

     文件       1078  2007-11-14 20:49  SecClient\res\SecClient.ico

     文件        401  2007-11-14 20:49  SecClient\res\SecClient.rc2

     文件     160838  2007-11-14 20:56  SecClient\res\Woa02.ico

     文件     160838  2007-11-14 20:56  SecClient\res\Woa12.ico

     文件     160838  2007-11-14 20:56  SecClient\res\Woa12g.ico

     目录          0  2008-05-27 23:24  SecClient\res

     文件       1145  2007-11-14 22:26  SecClient\resource.h

     文件     343336  2008-05-27 23:07  SecClient\SecClient.aps

     文件       1758  2008-05-27 23:15  SecClient\SecClient.clw

     文件       2166  2007-11-14 20:49  SecClient\SecClient.cpp

............此处省略61个文件信息

评论

共有 条评论