摘要:
项目为Unicode字字符集,调用inet_addr错误信息inet_addr cannot convert parameter1 from CString to const char*代码修改如下通过:serverip="192.168.0.9";charcip[30]wcstombs(cip,serverip,serverip.GetLength()*2);unsignedlongip=ntohl(inet_addr(cip))参考:wcstombs wcstombs - 将宽字符转换成多字符头文件:#include <stdlib.h>原型size_t w 阅读全文
摘要:
项目为Unicode字字符集,调用inet_addr错误信息inet_addr cannot convert parameter1 from CString to const char*代码修改如下通过:CString serverip;serverip = "192.168.0.9";char c... 阅读全文