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

VC++ 获取IP地址代码

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

代码说明:

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

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

发表评论

0 个回复

  • 各种解决序列问题
    各种解决序列问题-solve various problems sequence
    2022-10-22 02:30:03下载
    积分:1
  • 展现C#
     C#语言自C/C++演变而来。但是,它现代、简单、完全面向对象和类型安全。如果您是C/C++程序员,学习曲线将会很平坦。许多C#语句直接借用您所喜爱的语言,包括表达式和操作符。假如不仔细看,简直会把它当成C++。(C# language since C/C evolved from. However, its modern, simple, fully object-oriented and type safety. If you are C/C programmers, and the learning curve will be very flat. Many C# statements directly borrow your favorite language, including expression and operator. If not careful, it will be just as C.)
    2004-11-08 16:19:53下载
    积分:1
  • english_6x8_pixel
    Standard 6*8 ascii char dots lib,can be directly used to LCD driver program.
    2014-07-09 10:23:34下载
    积分:1
  • DES-disk-system
    以C++语言在微机上实现了美国数据加密标准DES。可随微机软盘任意路径下的任何文件,加密,加密文件可在软、硬盘任何目录下或在网络中传送;另一方面可对软、硬盘中的任何文件进行解密,解密后的文件除在末尾多出几个空格符外与原文件完全相同,绝不影响EXE文件,COM文件或数据库文件的使用。密钥有加密者在键盘输入8个字符。(In c++ language microcomputer to U.S. data encryption standard DES. With the computer floppy disk arbitrary path of any of the files, encryption, encrypt files can be in soft, hard disk any directory or in the network transmission On the other hand, soft, hard disk to the any classify documents, the decrypted file in the end in a few more the space appears with the original documents are all the same, never affect EXE file, COM file or database files use. Key there are JiaMiZhe in keyboard input 8 characters. )
    2011-12-28 22:14:57下载
    积分:1
  • ode-0.11.1
    可以用于rigid body等动画的仿真open dynamic engine最新版本。本人已经创建工程的ODE,全国首发,SLN文件在ode-0.11.1uildvs2008下,打开为可以运行的sample程序。(Open dynamic engine, which is used to animation simulation, such as rigid body. It is called as physical engine. I have make the ODE to be a .Sln file. You guys can directly use it. Have fun!)
    2009-11-25 12:01:24下载
    积分:1
  • battery_params
    battery_params battery_params
    2015-11-26 10:52:20下载
    积分:1
  • CAN通信实验
    【实例简介】CAN通信实验
    2021-11-11 00:35:59下载
    积分:1
  • src
    arm11 初学源代码 有些事自己完成 有些是经过修改的。希望对大家有帮助(arm program.)
    2013-12-02 10:37:42下载
    积分:1
  • C#编程制作日记本
    记事本是大家经常使用的一种工具,本程序采用C#语言编写了一款记事本软件,界面与平常使用的一样,对了解记事本的运行机制非常有帮助,也可以以此实例学习windows编程。
    2022-06-14 03:57:50下载
    积分:1
  • MultiThread
    VC++多线程编程 线程池 线程调度 线程同步(Multi-threaded programming VC++ thread pool thread scheduling thread synchronization)
    2010-11-24 17:51:53下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载