登录
首页 » c++ » VC++ 获取IP地址代码

VC++ 获取IP地址代码

于 2022-06-19 发布 文件大小:31.57 kB
0 130
下载积分: 2 下载次数: 1

代码说明:

获取局域网计算机名称和 IP 在实际的应用程序中,经常需要在程序检索整个局域网络,获取局域网络中的计算机名和 IP 地址。如果想获得计算机名主要使用了 Windows API 函数库中的 WnetOpenEnum、 WnetEnumResource 和 WnetCloseEnum 函数,而在使用这些函数之前,需要初始化向程序中 导入 mpr.lib 库和头文件 winnetwk.h; 如果想获得计算机 IP 主要使用了 gethostbyname 函数, 在使用该函数之前,需要导入 ws2_32.lib 库和头文件 afxsock.h。其中各函数的介绍

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • vc_AVI
    VC操作AVI文件的例子,老是太短,本来就只有这点说明(VC operation example of AVI files, always too short, had only this description)
    2010-02-01 10:30:17下载
    积分:1
  • VCdiary
    一个基于对话框的日记本小程序。以前在VC知识库中找基于对话框的序列化存储的程序一直没有找到,就自己做了一个。用到了链表和序列化,在对话框中使用工具栏,希望对大家有所帮助。首先,定义一个自己的结构体类,用来存储将要保存的信息。(a dialog based on the diary of the small procedures. In the past, VC knowledge base based on the dialog box to find the sequence of stored procedure has not been found, it had become one. Listless and used in the sequence, in the dialog box using the tool column, we hope to help. First, a definition of the structure type, will be used to store the information stored.)
    2006-08-15 22:58:35下载
    积分:1
  • cSharp-code-for-login
    C sharp code for login
    2014-09-08 19:23:22下载
    积分:1
  • IPTextBox
    说明:  这是一个ip地址输入框,对于初学者具有很好的参考价值。(This is an IP address input box, which has a good reference value for beginners.)
    2020-06-18 09:20:02下载
    积分:1
  • themethodofcreatPRBS
    说明:  产生伪随机序列的方法,C语言编写,调试通过。(Generate pseudo-random sequence, C languages, debugging through.)
    2008-10-18 13:53:52下载
    积分:1
  • SD_CARD
    基于stm32f407的sd卡数据读写功能,源码数据(Based stm32f407 the sd card data read and write functions, source data)
    2020-11-10 21:39:45下载
    积分:1
  • 笔试宝典-导出题库
    C++/后端开发/前端开发/基础知识等笔试题目题库大全(C++/ background development / front-end development / basic knowledge and other test questions)
    2017-11-24 18:49:12下载
    积分:1
  • C语言培训资料
    说明:  C language programming(C language programming, very useful, very good)
    2020-05-11 19:36:43下载
    积分:1
  • nrf2401
    nrf2401功能使用文档,对学习者很有帮助。(zidongfanyi chu wenti le ,zhineng xie pingyin le.)
    2012-02-02 12:13:03下载
    积分:1
  • 5756450
    模拟MFC实现动态创建,结合文章使用,很不错的()
    2018-06-15 06:19:16下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载