資源簡介
詳細的專門講解網絡通信的資料。
Visual C++網絡通信協議分析與應用實現代碼
代碼片段和文件信息
///////////////////////////////////////////////////////////////////////
//?If?this?program?works?it?was?written?by?Alexander?Fedorov.
//?If?not?I?don‘t?know?who?wrote?it.
//?mailto:lamer2000@hotmail.com
//?Home?Page:?http://members.xoom.com/lamer2000/
//?This?file?is?part?of?Alexf?Dialer.
//?This?program?is?free?software;?you?can?redistribute?it?and/or?modify
//?it?under?the?terms?of?the?GNU?General?Public?License?as?published?by
//?the?Free?Software?Foundation;?either?version?2?of?the?License?or
//?(at?your?option)?any?later?version.
///////////////////////////////////////////////////////////////////////
//?Afd.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Afd.h“
#include?“AfdDlg.h“
#include?“Page1.h“
#include?“Page2.h“
#include?“Page3.h“
#include?“Page4.h“
#include?
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAfdApp
BEGIN_MESSAGE_MAP(CAfdApp?CWinApp)
//{{AFX_MSG_MAP(CAfdApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CAfdApp?construction
CAfdApp::CAfdApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CAfdApp?object
CAfdApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CAfdApp?initialization
BOOL?CAfdApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CWnd?*?pWndPrev;
CWnd?*?pWndChild;
//查找窗體
pWndPrev?=?CWnd::FindWindow(_T(“#32770“)?“Alexf?Dialer“);
if?(pWndPrev)
{
pWndChild?=?pWndPrev->GetLastActivePopup();
CString?aaa?=?m_lpCmdLine;
aaa.MakeUpper();
if?(aaa.Find(“/E“)?!=?-1)
{
pWndPrev->SendMessage(WM_CLOSE?0?0);
return?FALSE;
}
if?(pWndPrev->IsIconic())?pWndPrev->ShowWindow(SW_RESTORE);
pWndChild->SetForegroundWindow();
return?FALSE;
}
//獲得完整的路徑和文件名
GetModuleFileName(NULL?sIniFileName.GetBuffer(MAX_PATH)?MAX_PATH);
//釋放空間
sIniFileName.ReleaseBuffer();
sIniFileName.MakeReverse();
sIniFileName?=?sIniFileName.Right(sIniFileName.GetLength()?-?sIniFileName.Find(‘\\‘));
sIniFileName.MakeReverse();
sIniFileName?+=?_T(“afd.ini“);
//創建三個CAlexfPerf類實例
pPerf[PERF_ConnectSpeed]?=?new?CAlexfPerf(ALEXF_PERF_DIALUP_CONNECTSPEED);
pPerf[PERF_BytesRecvd]???=?new?CAlexfPerf(ALEXF_PERF_DIALUP_BYTESRECVD);
pPerf[PERF_B
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????161??2002-12-18?00:02??Visual?C++網絡通信協議分析與應用實現代碼\readme.txt
?????文件????????189??2002-12-17?22:57??Visual?C++網絡通信協議分析與應用實現代碼\chap9\readme.txt
?????文件??????10452??1998-07-31?21:56??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.001
?????文件??????35248??2002-11-20?13:00??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.aps
?????文件???????3285??2002-11-20?13:00??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.clw
?????文件???????2037??1998-07-15?19:53??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.cpp
?????文件???????5062??2002-09-13?15:19??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.dsp
?????文件????????539??2002-09-13?15:17??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.dsw
?????文件??????52736??1998-08-03?10:36??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.exe
?????文件????????918??1998-07-05?12:27??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.h
?????文件????????766??1998-07-03?18:47??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.ico
?????文件??????10452??1998-07-31?21:56??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.mak
?????文件??????36352??1998-08-03?09:36??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.mdp
?????文件?????132096??2002-11-20?13:00??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.ncb
?????文件??????49664??2002-11-20?13:00??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.opt
?????文件???????2616??2002-11-20?13:00??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.plg
?????文件??????11691??2002-09-28?13:04??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPing.rc
?????文件??????31088??2002-09-16?13:42??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPingDlg.cpp
?????文件???????5429??1998-07-31?18:49??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\EWDPingDlg.h
?????文件??????31763??2002-09-16?10:12??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\Icmp.cpp
?????文件??????15355??2002-09-14?15:29??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\Icmp.h
?????文件???????6348??1998-07-17?15:49??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\Icmp.rc
?????文件???????1269??1998-07-08?21:47??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\PingOptionsDlg.cpp
?????文件????????849??1998-07-08?21:47??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\PingOptionsDlg.h
?????文件???????3370??1998-06-28?22:27??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\ReadMe.txt
?????文件??????10781??1998-07-21?12:18??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\RegKey.cpp
?????文件???????4411??1998-07-21?21:33??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\RegKey.h
?????文件???????1873??1998-07-31?18:51??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\Resource.h
?????文件????????205??1998-06-28?22:27??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\StdAfx.cpp
?????文件????????547??1998-06-28?22:27??Visual?C++網絡通信協議分析與應用實現代碼\chap9\ICMP高級開發\StdAfx.h
............此處省略808個文件信息
- 上一篇:C++ primer中文 word版
- 下一篇:matlab擴展編程
評論
共有 條評論