//BYTE 到 char *的转换
CString m_addr;
CStringA m_addrA;
char dstIP[32];
unsigned short sendPort = 80;//端口号
ipAddr->GetAddress(f1,f2,f3,f4);
m_addr.Format(_T("%d.%d.%d.%d"),f1,f2,f3,f4);
m_addrA = m_addr;
strcpy_s(dstIP,m_addrA);
//BYTE 到 char *的转换
CString m_addr;
CStringA m_addrA;
char dstIP[32];
unsigned short sendPort = 80;//端口号
ipAddr->GetAddress(f1,f2,f3,f4);
m_addr.Format(_T("%d.%d.%d.%d"),f1,f2,f3,f4);
m_addrA = m_addr;
strcpy_s(dstIP,m_addrA);