资源简介
RT
老师布置的熟悉socket的编程作业,用最简单的vc6.0做的,有利于新手熟悉过程
代码片段和文件信息
// chatrooms.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “chatrooms.h“
#include “chatroomsDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CChatroomsApp
BEGIN_MESSAGE_MAP(CChatroomsApp CWinApp)
//{{AFX_MSG_MAP(CChatroomsApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CChatroomsApp construction
CChatroomsApp::CChatroomsApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CChatroomsApp object
CChatroomsApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CChatroomsApp initialization
BOOL CChatroomsApp::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
CChatroomsDlg dlg;
m_pMainWnd = &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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 22088 2013-10-04 16:10 chatrooms\chatrooms.aps
文件 1943 2013-10-04 17:23 chatrooms\chatrooms.clw
文件 2199 2013-10-04 16:09 chatrooms\chatrooms.cpp
文件 4293 2013-10-04 16:09 chatrooms\chatrooms.dsp
文件 524 2013-10-04 16:09 chatrooms\chatrooms.dsw
文件 1357 2013-10-04 16:09 chatrooms\chatrooms.h
文件 74752 2013-10-04 17:23 chatrooms\chatrooms.ncb
文件 49664 2013-10-04 17:23 chatrooms\chatrooms.opt
文件 1602 2013-10-04 16:13 chatrooms\chatrooms.plg
文件 6786 2013-10-04 16:09 chatrooms\chatrooms.rc
文件 12132 2013-10-04 16:09 chatrooms\chatroomsDlg.cpp
文件 2205 2013-10-04 16:09 chatrooms\chatroomsDlg.h
文件 1520 2013-10-04 16:09 chatrooms\client.cpp
文件 2170945 2013-10-04 16:13 chatrooms\Debug\chatrooms.exe
文件 2559436 2013-10-04 16:13 chatrooms\Debug\chatrooms.ilk
文件 29419 2013-10-04 16:13 chatrooms\Debug\chatrooms.obj
文件 7105376 2013-10-04 16:09 chatrooms\Debug\chatrooms.pch
文件 4195328 2013-10-04 16:13 chatrooms\Debug\chatrooms.pdb
文件 9400 2013-10-04 16:09 chatrooms\Debug\chatrooms.res
文件 15511 2013-10-04 16:13 chatrooms\Debug\chatrooms.sbr
文件 70618 2013-10-04 16:13 chatrooms\Debug\chatroomsDlg.obj
文件 21905 2013-10-04 16:13 chatrooms\Debug\chatroomsDlg.sbr
文件 7200 2013-10-04 16:13 chatrooms\Debug\client.obj
文件 15089 2013-10-04 16:13 chatrooms\Debug\client.sbr
文件 29109 2013-10-04 16:13 chatrooms\Debug\sever.obj
文件 16951 2013-10-04 16:13 chatrooms\Debug\sever.sbr
文件 106282 2013-10-04 16:09 chatrooms\Debug\StdAfx.obj
文件 1377778 2013-10-04 16:09 chatrooms\Debug\StdAfx.sbr
文件 222208 2013-10-04 16:14 chatrooms\Debug\vc60.idb
文件 372736 2013-10-04 16:13 chatrooms\Debug\vc60.pdb
............此处省略14个文件信息
- 上一篇:吉大中心校区校园导游系统
- 下一篇:数字图像处理中值,均值滤波
评论
共有 条评论