使用C ++的WMI的IPAddress [英] IPAddress from wmi using c++

查看:73
本文介绍了使用C ++的WMI的IPAddress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Am使用c ++中的win32_networkadapterconfiguration类从wmi检索系统的ipaddress.但是我无法显示ipaddress..有一个类型转换pblm ...如何转换该变量成员并将其存储在字符串变量中? div class ="h2_lin">解决方案

根据 ^ ] IP地址保存在字符串数组中.


Am retrieving ipaddress of a system from wmi using win32_networkadapterconfiguration class in c++.. But i couldnt display the ipaddress.. there is a type conversion pblm... how to convert that variant member and store it in a string variable?

解决方案

According to the documentation[^] the IP addresses are held in an array of strings.


这篇关于使用C ++的WMI的IPAddress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆