• 大小: 3.72MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-20
  • 语言: 其他
  • 标签: VC  

资源简介

直接编译过,可以直接运行!分为客服端和服务器端,资源绝对没问题,请大家放心下载..

资源截图

代码片段和文件信息

// ChatRoomClient.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “ChatRoomClient.h“
#include “ChatRoomClientDlg.h“
#include “ConnectedDlg.h“
#include “ClientSocket.h“

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

BEGIN_MESSAGE_MAP(CChatRoomClientApp CWinApp)
//{{AFX_MSG_MAP(CChatRoomClientApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CChatRoomClientApp construction

CChatRoomClientApp::CChatRoomClientApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CChatRoomClientApp object

CChatRoomClientApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CChatRoomClientApp initialization

BOOL CChatRoomClientApp::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
CConnectedDlg cdlg(&curSocket);
if (cdlg.DoModal()==IDCANCEL) return FALSE;
CChatRoomClientDlg dlg(&curSocket);
m_pMainWnd = &dlg;
curSocket.SetDlg(&dlg);
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

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

     文件      22160  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClient.aps

     文件       2059  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClient.clw

     文件       2463  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClient.cpp

     文件       4572  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClient.dsp

     文件        551  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClient.dsw

     文件       1412  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClient.h

     文件      82944  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClient.ncb

     文件     142848  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClient.opt

     文件       2273  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClient.plg

     文件       6303  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClient.rc

     文件       5216  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClientDlg.cpp

     文件       1653  2009-12-27 17:13  ChatRoom\ChatRoomClient\ChatRoomClientDlg.h

     文件       1059  2009-12-27 17:13  ChatRoom\ChatRoomClient\ClientSocket.cpp

     文件       1337  2009-12-27 17:13  ChatRoom\ChatRoomClient\ClientSocket.h

     文件       1840  2009-12-27 17:13  ChatRoom\ChatRoomClient\ConnectedDlg.cpp

     文件       1344  2009-12-27 17:13  ChatRoom\ChatRoomClient\ConnectedDlg.h

     文件     114798  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\ChatRoomClient.exe

     文件     234972  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\ChatRoomClient.ilk

     文件      19287  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\ChatRoomClient.obj

     文件    5581016  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\ChatRoomClient.pch

     文件     304128  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\ChatRoomClient.pdb

     文件       3012  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\ChatRoomClient.res

     文件      30382  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\ChatRoomClientDlg.obj

     文件       9367  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\ClientSocket.obj

     文件      16158  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\ConnectedDlg.obj

     文件     106881  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\StdAfx.obj

     文件     214016  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\vc60.idb

     文件     364544  2009-12-27 17:13  ChatRoom\ChatRoomClient\Debug\vc60.pdb

     文件       3723  2009-12-27 17:13  ChatRoom\ChatRoomClient\ReadMe.txt

     文件       1078  2009-12-27 17:13  ChatRoom\ChatRoomClient\res\ChatRoomClient.ico

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

评论

共有 条评论