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

VC++ 获取IP地址代码

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

代码说明:

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

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

发表评论

0 个回复

  • STM32F4 ADC+USART
    利用STM32F4芯片完成单路AD采样及串口发送(Using STM32F4 chip to complete single channel AD sampling and serial port sending)
    2020-12-21 10:49:08下载
    积分:1
  • 贪吃蛇
    贪吃蛇 不能撞墙 不能装自己
    2022-05-21 20:34:47下载
    积分:1
  • Test02
    读取DXF文件(2000,2002版本),包括了分层管理数据的思想,供大家参考(read DXF files (version 2000, 2002), including a hierarchical data management thinking, for your reference)
    2007-06-08 11:16:22下载
    积分:1
  • CreateTROTRZ
    Extech PLM中创建物料的开发页面,改变了传统的PLM物料创建页面,可以定制化(Extech PLM to create materials development page to change the traditional PLM materials create a page, can be customized)
    2013-04-05 11:19:37下载
    积分:1
  • CPPBuildersmssdk
    C++Builder短信猫开发包,提供有C++Builde开发语言示例,方便程序员开发调用。支持单口gsm短信猫设备,-深圳汉邦科技 www.ssm-hb.com 0755-36537765(C++Builder SMS cat Development Kit, provides an example of the development of language C++Builde facilitate programmers call. Support single port gsm SMS cat equipment- Shenzhen parti Technology www.ssm-hb.com 0755-36537765)
    2013-12-12 14:15:18下载
    积分:1
  • pso
    标准粒子群算法PSO,MATLAB中实验,对学习粒子群算法很有帮助(Standard particle swarm optimization PSO, MATLAB in experiments on learning PSO helpful)
    2008-12-21 09:51:28下载
    积分:1
  • GPSadjustment
    测绘gps数据处理中必须应用的内容,用于gps基线网平差(GPS adjustment)
    2014-11-07 11:35:08下载
    积分:1
  • RTKLIB-rtklib_2.4.3
    通过GPS接收机,实现动态或静态状况下的精确定位。(realize the precise position)
    2019-04-03 15:33:47下载
    积分:1
  • www.mcufz.com
    网络控制单片机proteus仿真 利用网络控制单片机的LED、LCD,我只是整理了一下,方便大家学习,版权归原作者,网页也麻烦站长做好了,有一个上位机,点击自动运行一段程序和打开www.mcufz.com/tcp.htm,之后会自动关闭,有的杀毒软件会报是病毒,放心使用。 开始要安装一个WinPcap软件,不安装它不能仿真,然后运行仿真文件,过一会可以看到LCD显示出了IP地址50。1。1。1 (Proteus simulation network control the use of single-chip microcontroller network control LED, LCD, I am just finishing a bit, to facilitate learning, belongs to original author, the website also do a good job of head trouble, there is a host computer, click Automatic operation for some procedures and open www.mcufz.com/tcp.htm, will automatically shut down after some anti-virus software will be reported to viruses, ease of use. WinPcap started to install a software, do not install it can not simulation, and then run the simulation documents LCD moment we can see the IP addresses shows that 50. 1. 1.1)
    2009-05-29 05:29:37下载
    积分:1
  • FreeRTOSv8.0.1
    智能家居开发智能家居的程序代码分享谢谢。觉得好用的就下载玩玩(Intelligent development of intelligent Home Furnishing Home Furnishing code share. Feel good just download and play)
    2015-03-30 21:11:09下载
    积分:1
  • 696516资源总数
  • 106446会员总数
  • 9今日下载