有下面的一段简单的代码,大家帮忙看一下:u_long i;
CString aa;
i=startip; //startip是(startip=inet_addr(Sstartip))
aa=inet_ntoa(i);因为我想输出192.168.1.6这样形式的ip地址,所以用了 aa=inet_ntoa(i);
编译连接的时候报这个错:
error C2664: 'inet_ntoa' : cannot convert parameter 1 from 'unsigned long' to 'struct in_addr'
        No constructor could take the source type, or constructor overload resolution was ambiguous
不知道是为什么?