• 大小: 3.29MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-13
  • 语言: 其他
  • 标签: VC,IP  

资源简介

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个文件信息

评论

共有 条评论

相关资源