delete[]c1; delete[]c2; delete[]c3; delete[]c4;
dd =(i1<<24) + (i2<<16) + (i3<<8) + i4;
return dd;
}
void printIpNum(DWORD ip)...{
long ip1, ip2, ip3, ip4, dd1, dd2, dd3;
char addr[16];
ip1=(ip>>24) & 0xFF; dd1=ip1<<24; // 16777216;
ip2=( (ip-dd1)>>16) & 0xFF; dd2=ip2<<16; //(ip-dd1) / 65536;
ip3=( (ip-dd1-dd2)>>8) & 0xFF; dd3=ip3<<8; //(ip-dd1-dd2) / 256;
ip4=ip-dd1-dd2-dd3;
memset(addr, 0, 16);
sprintf(addr,"%3.3d.%3.3d.%3.3d.%3.3d", ip1, ip2, ip3, ip4);
addr[15]=0;
cout<<" ip="<<ip<<" addr="<<addr<<endl;
delete[]addr;
}