資源簡介
MFC對話框獲取本地網卡信息,挺好用的,大家可以試試

代碼片段和文件信息
//?09003711A.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“09003711A.h“
#include?“09003711ADlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy09003711AApp
BEGIN_MESSAGE_MAP(CMy09003711AApp?CWinApp)
//{{AFX_MSG_MAP(CMy09003711AApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMy09003711AApp?construction
CMy09003711AApp::CMy09003711AApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy09003711AApp?object
CMy09003711AApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy09003711AApp?initialization
BOOL?CMy09003711AApp::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
CMy09003711ADlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????36396??2012-06-21?08:26??MFC獲取IP地址的例子\09003711A.APS
?????文件???????1613??2012-06-21?14:19??MFC獲取IP地址的例子\09003711A.clw
?????文件???????2221??2012-06-19?15:18??MFC獲取IP地址的例子\09003711A.cpp
?????文件???????4328??2012-06-19?11:42??MFC獲取IP地址的例子\09003711A.dsp
?????文件???????1367??2012-06-14?00:15??MFC獲取IP地址的例子\09003711A.h
?????文件??????33792??2012-07-12?16:22??MFC獲取IP地址的例子\09003711A.ncb
?????文件???????1612??2012-07-12?16:22??MFC獲取IP地址的例子\09003711A.plg
?????文件???????6129??2012-06-21?08:26??MFC獲取IP地址的例子\09003711A.rc
?????文件???????8280??2012-06-21?08:25??MFC獲取IP地址的例子\09003711ADlg.cpp
?????文件???????1661??2012-06-17?15:50??MFC獲取IP地址的例子\09003711ADlg.h
?????文件?????110661??2012-07-12?16:22??MFC獲取IP地址的例子\Debug\09003711A.exe
?????文件?????207484??2012-07-12?16:22??MFC獲取IP地址的例子\Debug\09003711A.ilk
?????文件??????24821??2012-07-12?16:22??MFC獲取IP地址的例子\Debug\09003711A.obj
?????文件????5569168??2012-07-12?16:22??MFC獲取IP地址的例子\Debug\09003711A.pch
?????文件?????287744??2012-07-12?16:22??MFC獲取IP地址的例子\Debug\09003711A.pdb
?????文件???????3000??2012-07-12?16:21??MFC獲取IP地址的例子\Debug\09003711A.res
?????文件??????45947??2012-07-12?16:22??MFC獲取IP地址的例子\Debug\09003711ADlg.obj
?????文件?????106544??2012-07-12?16:22??MFC獲取IP地址的例子\Debug\StdAfx.obj
?????文件?????222208??2012-07-12?16:22??MFC獲取IP地址的例子\Debug\vc60.idb
?????文件?????372736??2012-07-12?16:22??MFC獲取IP地址的例子\Debug\vc60.pdb
?????文件???????9512??2002-01-30?17:32??MFC獲取IP地址的例子\IPEXPORT.H
?????文件??????15896??2012-06-14?13:25??MFC獲取IP地址的例子\Iphlpapi.h
?????文件??????84498??2003-11-17?20:39??MFC獲取IP地址的例子\IPHLPAPI.LIB
?????文件??????24450??2002-01-30?17:32??MFC獲取IP地址的例子\IPRTRMIB.H
?????文件???????6810??2002-01-30?17:32??MFC獲取IP地址的例子\IPTYPES.H
?????文件??????69536??1998-05-13?00:00??MFC獲取IP地址的例子\NETAPI32.LIB
?????文件???????3639??2012-06-14?00:15??MFC獲取IP地址的例子\ReadMe.txt
?????文件???????1078??2012-06-14?00:15??MFC獲取IP地址的例子\res\09003711A.ico
?????文件????????401??2012-06-14?00:15??MFC獲取IP地址的例子\res\09003711A.rc2
?????文件????????916??2012-06-19?16:23??MFC獲取IP地址的例子\resource.h
............此處省略8個文件信息
評論
共有 條評論