摘要:
#pragma comment(lib,"ws2_32.lib")#include <Winsock2.h>//将CString 型IP地址在IPAddressCtrl中显示 CString strIP="192.168.0.10"; DWORD dwIP; dwIP = inet_addr(strIP); unsigned char *pIP = (unsigned char*)&dwIP; m_ipAddr.SetAddress(*(pIP+3), *(pIP+2), *(pIP+1), *pIP); //将IPAddressCt 阅读全文