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

  • 大小: 5.27MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-26
  • 語言: C/C++
  • 標簽: MFC??socket??通信??

資源簡介

MFC編程實現socket通信(測試可用版)

資源截圖

代碼片段和文件信息

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

#include?“stdafx.h“
#include?“cFile.h“
#include?“cFileDlg.h“

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

/////////////////////////////////////////////////////////////////////////////
//?CCFileApp

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

/////////////////////////////////////////////////////////////////////////////
//?CCFileApp?construction

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

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCFileApp?object

CCFileApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CCFileApp?initialization

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

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

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

?????文件??????35724??2010-11-24?17:03??MFC?socket\cFile\cFile.aps

?????文件???????1188??2010-11-24?19:38??MFC?socket\cFile\cFile.clw

?????文件???????2143??2010-11-24?14:01??MFC?socket\cFile\cFile.cpp

?????文件???????4141??2010-11-23?17:03??MFC?socket\cFile\cFile.dsp

?????文件????????533??2010-11-23?17:03??MFC?socket\cFile\cFile.dsw

?????文件???????1313??2010-11-23?17:03??MFC?socket\cFile\cFile.h

?????文件??????50176??2010-11-24?19:38??MFC?socket\cFile\cFile.ncb

?????文件??????54784??2010-11-24?19:38??MFC?socket\cFile\cFile.opt

?????文件????????909??2010-11-24?19:04??MFC?socket\cFile\cFile.plg

?????文件???????5489??2010-11-24?17:03??MFC?socket\cFile\cFile.rc

?????文件???????6230??2010-11-24?19:20??MFC?socket\cFile\cFileDlg.cpp

?????文件???????1494??2010-11-24?14:09??MFC?socket\cFile\cFileDlg.h

?????文件?????106537??2010-11-24?19:04??MFC?socket\cFile\Debug\cFile.exe

?????文件?????221956??2010-11-24?19:04??MFC?socket\cFile\Debug\cFile.ilk

?????文件??????12895??2010-11-24?14:11??MFC?socket\cFile\Debug\cFile.obj

?????文件????5576872??2010-11-24?14:06??MFC?socket\cFile\Debug\cFile.pch

?????文件?????369664??2010-11-24?19:04??MFC?socket\cFile\Debug\cFile.pdb

?????文件???????2600??2010-11-24?17:03??MFC?socket\cFile\Debug\cFile.res

?????文件??????33215??2010-11-24?19:04??MFC?socket\cFile\Debug\cFileDlg.obj

?????文件?????106389??2010-11-24?14:06??MFC?socket\cFile\Debug\StdAfx.obj

?????文件?????214016??2010-11-24?19:04??MFC?socket\cFile\Debug\vc60.idb

?????文件?????364544??2010-11-24?19:04??MFC?socket\cFile\Debug\vc60.pdb

?????文件???????3561??2010-11-23?17:03??MFC?socket\cFile\ReadMe.txt

?????文件???????1078??2010-11-23?17:03??MFC?socket\cFile\res\cFile.ico

?????文件????????397??2010-11-23?17:03??MFC?socket\cFile\res\cFile.rc2

?????文件????????912??2010-11-24?14:08??MFC?socket\cFile\resource.h

?????文件????????207??2010-11-23?17:03??MFC?socket\cFile\StdAfx.cpp

?????文件???????1102??2010-11-24?13:39??MFC?socket\cFile\StdAfx.h

?????文件????3163136??2010-11-24?19:03??MFC?socket\sFile\Debug\sFile.bsc

?????文件?????106537??2010-11-24?19:03??MFC?socket\sFile\Debug\sFile.exe

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

評論

共有 條評論