Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted

1 solution

According to the documentation[^] the IP addresses are held in an array of strings.
 
Share this answer
 
v2
Comments
Member 9404971 21-Nov-12 0:34am    
so how to get the ip value into a string variable?
Richard MacCutchan 21-Nov-12 3:21am    
It's already a string, how difficult is it to copy from one to another?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900