IP 类型转换

CString strIP = "192.168.0.121";
DWORD dwIP = inet_addr(strIP.GetBuffer());
strIP = inet_ntoa((in_addr&)dwIP);

 

posted on 2012-06-08 15:42  caiguangwen1  阅读(156)  评论(0编辑  收藏  举报

导航