91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 54KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-14
  • 語言: C/C++
  • 標簽: socket??VC??聊天??通信??

資源簡介

一個在VC 的MFC環境下實現的socket通信的程序,可以實現客戶端和服務器端的互相通信,一個比較完善的程序!

資源截圖

代碼片段和文件信息

//?PublicNetSoft.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“PublicNetSoft.h“
#include?“PublicNetSoftDlg.h“

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

/////////////////////////////////////////////////////////////////////////////
//?CPublicNetSoftApp

BEGIN_MESSAGE_MAP(CPublicNetSoftApp?CWinApp)
//{{AFX_MSG_MAP(CPublicNetSoftApp)
//?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()

/////////////////////////////////////////////////////////////////////////////
//?CPublicNetSoftApp?construction

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

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CPublicNetSoftApp?object

CPublicNetSoftApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CPublicNetSoftApp?initialization

BOOL?CPublicNetSoftApp::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

CPublicNetSoftDlg?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;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1644??2003-02-11?03:08??SOCK改進版\ClientTest\ClientTest.clw

?????文件???????2213??2003-01-16?03:21??SOCK改進版\ClientTest\ClientTest.cpp

?????文件???????4272??2003-02-11?03:11??SOCK改進版\ClientTest\ClientTest.dsp

?????文件????????543??2003-01-16?03:21??SOCK改進版\ClientTest\ClientTest.dsw

?????文件???????1368??2003-01-16?03:21??SOCK改進版\ClientTest\ClientTest.h

?????文件???????6153??2003-02-11?03:08??SOCK改進版\ClientTest\ClientTest.rc

?????文件???????7126??2003-02-11?03:07??SOCK改進版\ClientTest\ClientTestDlg.cpp

?????文件???????1670??2003-01-17?04:23??SOCK改進版\ClientTest\ClientTestDlg.h

?????文件???????1154??2003-01-17?04:29??SOCK改進版\ClientTest\GetIP.cpp

?????文件???????1203??2003-01-17?04:29??SOCK改進版\ClientTest\GetIP.h

?????文件????????916??2003-01-17?04:22??SOCK改進版\ClientTest\Resource.h

?????文件????????212??2003-01-16?03:21??SOCK改進版\ClientTest\StdAfx.cpp

?????文件???????1210??2003-01-17?03:55??SOCK改進版\ClientTest\StdAfx.h

?????文件???????7912??2003-01-17?04:15??SOCK改進版\ClientTest\代碼說明.txt

?????文件???????1078??2003-01-16?03:21??SOCK改進版\ClientTest\RES\ClientTest.ico

?????文件????????402??2003-01-16?03:21??SOCK改進版\ClientTest\RES\ClientTest.rc2

?????文件???????1078??2003-01-14?03:03??SOCK改進版\RES\PublicNetSoft.ico

?????文件????????405??2003-01-14?03:03??SOCK改進版\RES\PublicNetSoft.rc2

?????文件??????24576??2003-02-11?03:11??SOCK改進版\ClientTest.exe

?????文件??????36056??2008-05-22?14:09??SOCK改進版\PublicNetSoft.aps

?????文件???????2255??2003-01-14?03:03??SOCK改進版\PublicNetSoft.cpp

?????文件???????4230??2003-02-11?03:11??SOCK改進版\PublicNetSoft.dsp

?????文件????????549??2003-01-14?03:03??SOCK改進版\PublicNetSoft.dsw

?????文件??????24576??2003-02-11?03:11??SOCK改進版\PublicNetSoft.exe

?????文件???????1401??2003-01-14?03:03??SOCK改進版\PublicNetSoft.h

?????文件??????41984??2008-05-22?14:12??SOCK改進版\PublicNetSoft.ncb

?????文件???????1862??2008-05-22?14:09??SOCK改進版\PublicNetSoft.plg

?????文件???????5608??2008-05-22?14:09??SOCK改進版\PublicNetSoft.rc

?????文件???????1342??2008-05-22?14:09??SOCK改進版\PublicNetSoft.clw

?????文件??????53760??2008-05-22?14:12??SOCK改進版\PublicNetSoft.opt

............此處省略12個文件信息

評論

共有 條評論