-
大小: 634KB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-05-07
- 語言: C/C++
- 標(biāo)簽: C++??源代碼??網(wǎng)絡(luò)電話??
資源簡介
網(wǎng)絡(luò)電話的C++源代碼,有需要的自己下載學(xué)習(xí)!

代碼片段和文件信息
//?NetPhone.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“NetPhone.h“
#include?“NetPhoneDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CNetPhoneApp
BEGIN_MESSAGE_MAP(CNetPhoneApp?CWinApp)
//{{AFX_MSG_MAP(CNetPhoneApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CNetPhoneApp?construction
CNetPhoneApp::CNetPhoneApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CNetPhoneApp?object
CNetPhoneApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CNetPhoneApp?initialization
BOOL?CNetPhoneApp::InitInstance()
{
if?(!AfxSocketInit())
{
AfxMessageBox(“Windows套接字初始化失敗!“MB_ICONINFORMATION?|?MB_OKNULL);
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
CNetPhoneDlg?dlg;
m_pMainWnd?=?&dlg;
SetDialogBkColor(0x00FFFFFF0x00FF0000);
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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????503768??2004-04-08?21:00??NetPhone\NetPhone.aps
?????文件???????1451??2004-04-08?21:09??NetPhone\NetPhone.clw
?????文件???????2265??2003-03-24?21:15??NetPhone\NetPhone.cpp
?????文件???????5685??2003-03-24?21:15??NetPhone\NetPhone.dsp
?????文件????????541??2003-03-24?21:15??NetPhone\NetPhone.dsw
?????文件?????520315??2004-04-08?21:02??NetPhone\NetPhone.exe
?????文件???????1346??2003-03-24?21:15??NetPhone\NetPhone.h
?????文件?????246784??2004-04-08?21:09??NetPhone\NetPhone.ncb
?????文件??????59904??2004-04-08?21:09??NetPhone\NetPhone.opt
?????文件????????250??2004-04-08?21:03??NetPhone\NetPhone.plg
?????文件???????6866??2003-03-24?21:15??NetPhone\NetPhone.rc
?????文件??????21896??2003-03-24?21:15??NetPhone\NetPhoneDlg.cpp
?????文件???????3445??2003-03-24?21:15??NetPhone\NetPhoneDlg.h
?????文件??????10026??2003-03-24?21:15??NetPhone\PhoneIn.wav
?????文件???????3615??2003-03-24?21:15??NetPhone\ReadMe.txt
?????文件???????4856??2003-03-24?21:15??NetPhone\RES\CommnunicateU.BMP
?????文件???????4856??2003-03-24?21:15??NetPhone\RES\CommnunicateX.BMP
?????文件???????4856??2003-03-24?21:15??NetPhone\RES\ConnectU.bmp
?????文件???????2678??2003-03-24?21:15??NetPhone\RES\ConnectX.BMP
?????文件???????4856??2003-03-24?21:15??NetPhone\RES\DisconnectU.BMP
?????文件???????4856??2003-03-24?21:15??NetPhone\RES\DisconnectX.BMP
?????文件???????4856??2003-03-24?21:15??NetPhone\RES\ExitU.BMP
?????文件???????2038??2003-03-24?21:15??NetPhone\RES\Help.ico
?????文件???????4856??2003-03-24?21:15??NetPhone\RES\HelpU.BMP
?????文件???????3540??2003-03-24?21:15??NetPhone\RES\ISERROR.LOG
?????文件?????437984??2003-03-24?21:15??NetPhone\RES\Kitty.bmp
?????文件???????4856??2003-03-24?21:15??NetPhone\RES\MiniU.BMP
?????文件???????1078??2003-03-24?21:15??NetPhone\RES\NetPhone.ico
?????文件????????400??2003-03-24?21:15??NetPhone\RES\NetPhone.rc2
????..A.SH.?????33792??2003-03-24?21:15??NetPhone\RES\Thumbs.db
............此處省略12個文件信息
評論
共有 條評論