資源簡介
VC獲取局域網中計算機名和IP地址,并把結果輸出到Name_IP.ini文件中!
運行程序后,點擊確定,等待界面退出后,程序結束!

代碼片段和文件信息
//?IPIP.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“IPIP.h“
#include?“IPIPDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CIPIPApp
BEGIN_MESSAGE_MAP(CIPIPApp?CWinApp)
//{{AFX_MSG_MAP(CIPIPApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CIPIPApp?construction
CIPIPApp::CIPIPApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CIPIPApp?object
CIPIPApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CIPIPApp?initialization
BOOL?CIPIPApp::InitInstance()
{
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
CIPIPDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????20560??2011-07-24?13:48??IPIP\IPIP.APS
?????文件???????1055??2011-07-24?17:37??IPIP\IPIP.clw
?????文件???????2035??2011-07-24?13:48??IPIP\IPIP.cpp
?????文件???????4123??2011-07-24?13:48??IPIP\IPIP.dsp
?????文件????????531??2011-07-24?13:48??IPIP\IPIP.dsw
?????文件???????1302??2011-07-24?13:48??IPIP\IPIP.h
?????文件??????50176??2011-07-26?10:46??IPIP\IPIP.ncb
?????文件??????48640??2011-07-26?10:46??IPIP\IPIP.opt
?????文件???????1739??2011-07-26?10:46??IPIP\IPIP.plg
?????文件???????4904??2011-07-24?13:48??IPIP\IPIP.rc
?????文件???????7612??2011-07-25?21:09??IPIP\IPIPDlg.cpp
?????文件???????1421??2011-07-24?13:53??IPIP\IPIPDlg.h
?????文件???????3543??2011-07-24?13:48??IPIP\ReadMe.txt
?????文件????????530??2011-07-24?13:48??IPIP\Resource.h
?????文件????????206??2011-07-24?13:48??IPIP\StdAfx.cpp
?????文件???????1054??2011-07-24?13:48??IPIP\StdAfx.h
?????文件???????1078??2011-07-24?13:48??IPIP\res\IPIP.ico
?????文件????????396??2011-07-24?13:48??IPIP\res\IPIP.rc2
?????文件??????24576??2011-07-26?10:46??IPIP\Release\IPIP.exe
?????文件???????8761??2011-07-26?10:46??IPIP\Release\IPIP.obj
?????文件????5824380??2011-07-26?10:46??IPIP\Release\IPIP.pch
?????文件???????2504??2011-07-26?10:46??IPIP\Release\IPIP.res
?????文件??????20754??2011-07-26?10:46??IPIP\Release\IPIPDlg.obj
?????文件????????750??2011-07-26?10:46??IPIP\Release\StdAfx.obj
?????文件??????50176??2011-07-26?10:46??IPIP\Release\vc60.idb
?????文件?????110642??2011-07-25?21:09??IPIP\Debug\IPIP.exe
?????文件?????224640??2011-07-25?21:09??IPIP\Debug\IPIP.ilk
?????文件??????12718??2011-07-25?19:58??IPIP\Debug\IPIP.obj
?????文件????5642220??2011-07-25?19:58??IPIP\Debug\IPIP.pch
?????文件?????402432??2011-07-25?21:09??IPIP\Debug\IPIP.pdb
............此處省略12個文件信息
- 上一篇:智能小車紅外遙控超聲波測距
- 下一篇:EDA四人搶答器Verilog編程
評論
共有 條評論